mirror of
https://github.com/apache/httpd.git
synced 2025-08-10 02:56:11 +00:00
Add AP_HAVE_C99 to make correct check for C99 less onerous
Using __STDC_VERSION__ without checking if it is defined causes warnings on C89. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1292043 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@ -211,11 +211,14 @@
|
||||
#define AP_HAVE_RELIABLE_PIPED_LOGS TRUE
|
||||
#endif
|
||||
|
||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
||||
#define AP_HAVE_C99
|
||||
#endif
|
||||
|
||||
/* Presume that the compiler supports C99-style designated
|
||||
* initializers if using GCC (but not G++), or for any other compiler
|
||||
* which claims C99 support. */
|
||||
#if (defined(__GNUC__) && !defined(__cplusplus)) \
|
||||
|| (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)
|
||||
#if (defined(__GNUC__) && !defined(__cplusplus)) || defined(AP_HAVE_C99)
|
||||
#define AP_HAVE_DESIGNATED_INITIALIZER
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user