diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-06-16 22:47:40 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-06-16 22:47:40 +0000 |
commit | ccf874816b57b9b91848a81cf43371bf7b3f17c8 (patch) | |
tree | 99f4b748bafae3555a323e6ba54b08fbf3ad6658 /perl.h | |
parent | 72f7b9a1041f8cd00a817b387850fef64f11d90e (diff) | |
download | perl-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.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 |