summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-16 22:47:40 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-16 22:47:40 +0000
commitccf874816b57b9b91848a81cf43371bf7b3f17c8 (patch)
tree99f4b748bafae3555a323e6ba54b08fbf3ad6658 /perl.h
parent72f7b9a1041f8cd00a817b387850fef64f11d90e (diff)
downloadperl-ccf874816b57b9b91848a81cf43371bf7b3f17c8.tar.gz
Add workaround for Darwin's (Mac OS X's) INT32_MIN
(and INT64_MIN) brokenness. p4raw-id: //depot/perl@10649
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index 4c82ca7d56..a0405d1f79 100644
--- a/perl.h
+++ b/perl.h
@@ -1082,6 +1082,16 @@ int sockatmark(int);
typedef IVTYPE IV;
typedef UVTYPE UV;
+#ifdef INT32_MIN_BROKEN
+# undef INT32_MIN
+# define INT32_MIN (-2147483647-1)
+#endif
+
+#ifdef INT64_MIN_BROKEN
+# undef INT64_MIN
+# define INT64_MIN (-9223372036854775807LL-1)
+#endif
+
#if defined(USE_64_BIT_INT) && defined(HAS_QUAD)
# if QUADKIND == QUAD_IS_INT64_T && defined(INT64_MAX)
# define IV_MAX INT64_MAX