]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix designated initializer check to be defined
authorRobbie Harwood <rharwood@redhat.com>
Mon, 10 Apr 2017 18:01:40 +0000 (14:01 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 14 Apr 2017 16:02:57 +0000 (12:02 -0400)
src/lib/krb5/os/accessor.c

index df63b14faa56a051036949cb45591ddf584531e0..11552ef42c08e9a40af4d8126ee635444bda0a74 100644 (file)
 
 /* 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                        \
-     /* ...as does GCC, since version 2.something.  */  \
-     || (!defined __cplusplus && __GNUC__ >= 3))
+/* ANSI/ISO C 1999 supports this...  */
+#if __STDC_VERSION__ >= 199901L                       \
+    /* ...as does GCC, since version 2.something.  */ \
+    || (!defined __cplusplus && __GNUC__ >= 3)
+#define DESIGNATED_INITIALIZERS 1
+#else
+#define DESIGNATED_INITIALIZERS 0
+#endif
 #endif
 
 krb5_error_code KRB5_CALLCONV