-*- coding: utf-8 -*-
Changes with Apache 2.2.1
+ *) Fix to avoid feeding C99 to C++ compilers [Joe Orton]
+
*) SECURITY: CVE-2005-3357 (cve.mitre.org)
mod_ssl: Fix a possible crash during access control checks if a
non-SSL request is processed for an SSL vhost (such as the
Message-ID: <4395A056.2070000@web.turner.com>
+1: jerenkrantz, jim, wrowe
- * Fix for AP_HAVE_DESIGNATED_INITIALIZER vs C++ compilers
- http://svn.apache.org/viewcvs?rev=356234&view=rev
- + http://svn.apache.org/viewcvs?rev=356248&view=rev
- = http://people.apache.org/~jorton/httpd-2.2.0-cppheader.patch
- +1: jorton, wrowe, niq
-
PATCHES PROPOSED TO BACKPORT FROM TRUNK:
* mod_dbd: When threaded, create a private pool in child_init
dnl ## Check for typedefs, structures, and compiler characteristics.
AC_C_CONST
-if test "x$GCC" = "xyes"; then
- AC_DEFINE([AP_HAVE_DESIGNATED_INITIALIZER], 1,
- [Define if the compiler supports designated initializers])
-fi
dnl ## Check for library functions
AC_SEARCH_LIBS(sqrt, m)
#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 */