diff options
author | Toomas Soome <tsoome@me.com> | 2018-03-10 14:50:41 -0800 |
---|---|---|
committer | Joshua M. Clulow <josh@sysmgr.org> | 2018-03-10 14:50:41 -0800 |
commit | 5fb574e854f31be9e2869532e3b126fa424ee4d9 (patch) | |
tree | a6bb90a137b8d91018034d8642e5616d510c0a25 /usr/src | |
parent | 99591362ae3dee1f30d3be8bc4bdca109e256eb7 (diff) | |
download | illumos-gate-5fb574e854f31be9e2869532e3b126fa424ee4d9.tar.gz |
9179 gss_mechs/mech_krb5 this use of "defined" may not be portable
Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
Reviewed by: Gordon Ross <gordon.w.ross@gmail.com>
Approved by: Joshua M. Clulow <josh@sysmgr.org>
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/lib/gss_mechs/mech_krb5/krb5/os/accessor.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/usr/src/lib/gss_mechs/mech_krb5/krb5/os/accessor.c b/usr/src/lib/gss_mechs/mech_krb5/krb5/os/accessor.c index 1eb12be1dd..e3d4074197 100644 --- a/usr/src/lib/gss_mechs/mech_krb5/krb5/os/accessor.c +++ b/usr/src/lib/gss_mechs/mech_krb5/krb5/os/accessor.c @@ -30,11 +30,14 @@ /* If this trick gets used elsewhere, move it to k5-platform.h. */ #ifndef DESIGNATED_INITIALIZERS -#define DESIGNATED_INITIALIZERS \ - /* ANSI/ISO C 1999 supports this... */ \ - (__STDC_VERSION__ >= 199901L \ +/* ANSI/ISO C 1999 supports this... */ +#if __STDC_VERSION__ >= 199901L \ /* ...as does GCC, since version 2.something. */ \ - || (!defined __cplusplus && __GNUC__ >= 3)) + || (!defined __cplusplus && __GNUC__ >= 3) +#define DESIGNATED_INITIALIZERS 1 +#else +#define DESIGNATED_INITIALIZERS 0 +#endif #endif krb5_error_code KRB5_CALLCONV |