]> git.ipfire.org Git - thirdparty/krb5.git/commit
Make public headers work with gcc -Wundef 726/head
authorGreg Hudson <ghudson@mit.edu>
Sat, 10 Feb 2018 05:31:45 +0000 (00:31 -0500)
committerGreg Hudson <ghudson@mit.edu>
Wed, 14 Feb 2018 16:53:16 +0000 (11:53 -0500)
commit4737a11fbb746519bb7cbd040546f799fbfb3a0f
treea190cd61833bd40393366e5bf5662a50f889ceeb
parente1caf6fb74981da62039846931ebdffed71309d1
Make public headers work with gcc -Wundef

The C standard allows undefined symbols in #if statements, giving them
the value 0 (C99 section 6.10.1).  However, some software builds with
gcc -Wundef, which issues a warning on undefined symbols in
preprocessor expressions.  Make the public headers safe for that
environment by using #ifdef instead of #if for TARGET_OS_MAC.
Reported by Ben Kaduk.

ticket: 8641 (new)
src/include/krb5/krb5.hin
src/lib/gssapi/generic/gssapi.hin