Skip to content

Commit

Permalink
It would seem that Mac OS X has fixed the INT32_MIN INT64_MIN.
Browse files Browse the repository at this point in the history
p4raw-id: //depot/perl@17617
  • Loading branch information
jhi committed Jul 18, 2002
1 parent 25342a5 commit 65fe0b2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions hints/darwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,18 @@ ccflags="${ccflags} -pipe -fno-common"
# seems to work. INT64_MIN seems to be similarly broken.
# -- Nicholas Clark, Ken Williams, and Edward Moy
#
ccflags="${ccflags} -DINT32_MIN_BROKEN -DINT64_MIN_BROKEN"
# This seems to have been fixed since at least Mac OS X 10.1.3,
# stdint.h defining INT32_MIN as (-INT32_MAX-1)
# -- Edward Moy
#
case "`grep '^#define INT32_MIN' /usr/include/stdint.h`" in
*-2147483648) ccflags="${ccflags} -DINT32_MIN_BROKEN -DINT64_MIN_BROKEN" ;;
esac

# cppflags='-traditional-cpp';
# avoid Apple's cpp precompiler, better for extensions
cppflags="${cppflags} -no-cpp-precomp"
# and ccflags needs them aswell since we don't use cpp directly
# and ccflags needs them as well since we don't use cpp directly
ccflags="${ccflags} -no-cpp-precomp"

# Known optimizer problems.
Expand Down

0 comments on commit 65fe0b2

Please sign in to comment.