diff options
author | crees <crees@FreeBSD.org> | 2013-02-03 19:43:26 +0800 |
---|---|---|
committer | crees <crees@FreeBSD.org> | 2013-02-03 19:43:26 +0800 |
commit | 5e68044bb84ec877d56fd24b7bcffd60d1788bec (patch) | |
tree | 2d0f26c71f9e49965c6977c6f6eb9fdaad218af3 /lang | |
parent | 8ed36b57bc6937892fd6b8aa74f3438f58a819b1 (diff) | |
download | freebsd-ports-gnome-5e68044bb84ec877d56fd24b7bcffd60d1788bec.tar.gz freebsd-ports-gnome-5e68044bb84ec877d56fd24b7bcffd60d1788bec.tar.zst freebsd-ports-gnome-5e68044bb84ec877d56fd24b7bcffd60d1788bec.zip |
Fix logic (should be defined to true integer, not false).
While here, let's use patch from upstream so it obviously conflicts on
the next update.
Submitted by: koobs
Obtained from: http://bugs.python.org/issue16753
Diffstat (limited to 'lang')
-rw-r--r-- | lang/python33/files/patch-Modules-_decimal-libmpdec-io.c | 16 | ||||
-rw-r--r-- | lang/python33/files/patch-Modules-_decimal-libmpdec-mpdecimal.h | 21 |
2 files changed, 21 insertions, 16 deletions
diff --git a/lang/python33/files/patch-Modules-_decimal-libmpdec-io.c b/lang/python33/files/patch-Modules-_decimal-libmpdec-io.c deleted file mode 100644 index 42dd36a42227..000000000000 --- a/lang/python33/files/patch-Modules-_decimal-libmpdec-io.c +++ /dev/null @@ -1,16 +0,0 @@ ---- Modules/_decimal/libmpdec/io.c.orig 2013-02-02 13:00:09.687048586 +0000 -+++ Modules/_decimal/libmpdec/io.c 2013-02-02 13:29:21.722048769 +0000 -@@ -25,6 +25,13 @@ - * SUCH DAMAGE. - */ - -+/* Work around bug in FreeBSD 9.1-RELEASE; fixed in r243331 */ -+ -+#ifndef __GNUC_STDC_INLINE__ -+#define __GNUC_STDC_INLINE__ 0 -+#endif -+ -+ - #include "mpdecimal.h" - #include <stdio.h> - #include <stdlib.h> diff --git a/lang/python33/files/patch-Modules-_decimal-libmpdec-mpdecimal.h b/lang/python33/files/patch-Modules-_decimal-libmpdec-mpdecimal.h new file mode 100644 index 000000000000..47d1f7b4d1c7 --- /dev/null +++ b/lang/python33/files/patch-Modules-_decimal-libmpdec-mpdecimal.h @@ -0,0 +1,21 @@ + +# HG changeset patch +# User Stefan Krah <skrah@bytereef.org> +# Date 1356273741 -3600 +# Node ID f05d29353f0278b21295f44467d08bd57a9ae33f +# Parent e684b253fd9dd73495fcef89aad43ae9c42f975c +Issue #16753: Define __GNUC_STDC_INLINE__ to an integer (same as gcc). + +diff --git a/Modules/_decimal/libmpdec/mpdecimal.h b/Modules/_decimal/libmpdec/mpdecimal.h +--- Modules/_decimal/libmpdec/mpdecimal.h ++++ Modules/_decimal/libmpdec/mpdecimal.h +@@ -63,7 +63,7 @@ extern "C" { + #include <inttypes.h> + #endif + #ifndef __GNUC_STDC_INLINE__ +- #define __GNUC_STDC_INLINE__ ++ #define __GNUC_STDC_INLINE__ 1 + #endif + #if defined(__GNUC__) && !defined(__INTEL_COMPILER) + #define UNUSED __attribute__((unused)) + |