summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2005-12-12 10:10:33 +0000
committerJoe Orton <jorton@apache.org>2005-12-12 10:10:33 +0000
commit2160d59157defbc2f11e158473b793c7bdeeccbc (patch)
treef5ade0a8f3bb259b9eda7760725d88d669038d2a /include
parent48904ff464cc2f53731395cc6132082367581830 (diff)
downloadhttpd-2160d59157defbc2f11e158473b793c7bdeeccbc.tar.gz
* include/ap_config.h: Define AP_HAVE_DESIGNATED_INITIALIZER for GCC
(but not G++) or any compiler which claims C99 support. * configure.in: Don't define AP_HAVE_DESIGNATED_INITIALIZER here. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@356234 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r--include/ap_config.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/ap_config.h b/include/ap_config.h
index a580e67b49..8bd6e0de4f 100644
--- a/include/ap_config.h
+++ b/include/ap_config.h
@@ -252,4 +252,12 @@
#define AP_HAVE_RELIABLE_PIPED_LOGS TRUE
#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)
+#define AP_HAVE_DESIGNATED_INITIALIZER
+#endif
+
#endif /* AP_CONFIG_H */