[svn-r7280] Purpose:

Bug Fix

Description:
    In a fit of what can only be described as brain-damagedness, on blue,
    frost, etc. (AIX, really), when you include the zlib.h header file
    and are specifying that the compiler accept ANSI C, zlib.h undefines
    the "const" keyword if you don't have the variable STDC
    defined...*boggle*.

Solution:
    Included a -DSTDC as a commandline flag for the compiler.

Platforms tested:
    Snow (AIX 5.0)
    Only affects AIX machines, so no h5committest needed.

Misc. update:
This commit is contained in:
Bill Wendling 2003-07-31 15:15:13 -05:00
parent 69bc830f8a
commit 2f7273dc73

View File

@ -8,10 +8,10 @@
# Use -D_LARGE_FILES by default to support large file size.
if test "X-" = "X-$CC"; then
if test "X-$enable_parallel" = "X-yes"; then
CC='mpcc_r -qlanglvl=ansi -D_LARGE_FILES'
CC='mpcc_r -qlanglvl=ansi -D_LARGE_FILES -DSTDC'
CC_BASENAME=mpcc_r
else
CC='xlc -qlanglvl=ansi -D_LARGE_FILES'
CC='xlc -qlanglvl=ansi -D_LARGE_FILES -DSTDC'
CC_BASENAME=xlc
fi
fi