summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Fenner <fenner@FreeBSD.org>2002-04-09 06:10:54 +0000
committerBill Fenner <fenner@FreeBSD.org>2002-04-09 06:10:54 +0000
commitb14f5cee7c8af837e8a8f65713032578ba8a5137 (patch)
tree55e97dcd546efaacde845493fc80cb0b20bfd53b
parent8c457db7caece3c9e5fedbc48d3ecdc4154f6b85 (diff)
downloadfreebsd-ports-b14f5cee7c8af837e8a8f65713032578ba8a5137.zip
Don't redefine INT32_MAX
-rw-r--r--japanese/lambdamoo/files/patch-aa17
-rw-r--r--net/lambdamoo/files/patch-aa17
2 files changed, 34 insertions, 0 deletions
diff --git a/japanese/lambdamoo/files/patch-aa b/japanese/lambdamoo/files/patch-aa
index d9522357c30d..5ee90ab4fb9a 100644
--- a/japanese/lambdamoo/files/patch-aa
+++ b/japanese/lambdamoo/files/patch-aa
@@ -9,3 +9,20 @@
#undef HAVE_MATHERR
#undef HAVE_MKFIFO
#undef HAVE_REMOVE
+@@ -257,12 +257,16 @@
+ #if INT_MAX == 2147483647
+ typedef int int32;
+ typedef unsigned unsigned32;
++# ifndef INT32_MAX
+ # define INT32_MAX INT_MAX
++# endif
+ #else
+ # if LONG_MAX == 2147483647
+ typedef long int int32;
+ typedef unsigned long unsigned32;
++# ifndef INT32_MAX
+ # define INT32_MAX LONG_MAX
++# endif
+ # else
+ # error I cannot figure out how to express a 32-bit integer on your machine.
+ # endif
diff --git a/net/lambdamoo/files/patch-aa b/net/lambdamoo/files/patch-aa
index d9522357c30d..5ee90ab4fb9a 100644
--- a/net/lambdamoo/files/patch-aa
+++ b/net/lambdamoo/files/patch-aa
@@ -9,3 +9,20 @@
#undef HAVE_MATHERR
#undef HAVE_MKFIFO
#undef HAVE_REMOVE
+@@ -257,12 +257,16 @@
+ #if INT_MAX == 2147483647
+ typedef int int32;
+ typedef unsigned unsigned32;
++# ifndef INT32_MAX
+ # define INT32_MAX INT_MAX
++# endif
+ #else
+ # if LONG_MAX == 2147483647
+ typedef long int int32;
+ typedef unsigned long unsigned32;
++# ifndef INT32_MAX
+ # define INT32_MAX LONG_MAX
++# endif
+ # else
+ # error I cannot figure out how to express a 32-bit integer on your machine.
+ # endif