aboutsummaryrefslogtreecommitdiff
path: root/src/include/krb5/krb5.hin
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2018-02-10 00:31:45 -0500
committerGreg Hudson <ghudson@mit.edu>2018-02-14 11:53:16 -0500
commit4737a11fbb746519bb7cbd040546f799fbfb3a0f (patch)
treea190cd61833bd40393366e5bf5662a50f889ceeb /src/include/krb5/krb5.hin
parente1caf6fb74981da62039846931ebdffed71309d1 (diff)
downloadkrb5-4737a11fbb746519bb7cbd040546f799fbfb3a0f.zip
krb5-4737a11fbb746519bb7cbd040546f799fbfb3a0f.tar.gz
krb5-4737a11fbb746519bb7cbd040546f799fbfb3a0f.tar.bz2
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)
Diffstat (limited to 'src/include/krb5/krb5.hin')
-rw-r--r--src/include/krb5/krb5.hin4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/krb5/krb5.hin b/src/include/krb5/krb5.hin
index c86e782..55135fc 100644
--- a/src/include/krb5/krb5.hin
+++ b/src/include/krb5/krb5.hin
@@ -106,7 +106,7 @@
KRB5INT_BEGIN_DECLS
-#if TARGET_OS_MAC
+#if defined(TARGET_OS_MAC) && TARGET_OS_MAC
# pragma pack(push,2)
#endif
@@ -8481,7 +8481,7 @@ krb5_set_kdc_recv_hook(krb5_context context, krb5_post_recv_fn recv_hook,
void *data);
-#if TARGET_OS_MAC
+#if defined(TARGET_OS_MAC) && TARGET_OS_MAC
# pragma pack(pop)
#endif