From 2f7273dc738c462e178eeddd21e2227403846cf0 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 31 Jul 2003 15:15:13 -0500 Subject: [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: --- config/powerpc-ibm-aix5.x | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/powerpc-ibm-aix5.x b/config/powerpc-ibm-aix5.x index a58bccd..a769ac0 100644 --- a/config/powerpc-ibm-aix5.x +++ b/config/powerpc-ibm-aix5.x @@ -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 -- cgit v0.12