Skip to content

Commit

Permalink
Fix designated initializer check to be defined
Browse files Browse the repository at this point in the history
  • Loading branch information
frozencemetery authored and greghudson committed Apr 14, 2017
1 parent 1d8988d commit 0822275
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/lib/krb5/os/accessor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
/* ...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
Expand Down

0 comments on commit 0822275

Please sign in to comment.