dnl ## Check for typedefs, structures, and compiler characteristics.
AC_C_CONST
+if test "$ac_cv_prog_gcc" = "yes"; then
+ APR_ADDTO(CPPFLAGS,-DAP_HAVE_DESIGNATED_INITIALIZER)
+fi
dnl ## Check for library functions
AC_ARG_ENABLE(maintainer-mode,[ --enable-maintainer-mode Turn on debugging and compile time warnings],
[
- if test "$ac_cv_prog_gcc" = "yes"; then
- APR_ADDTO(CPPFLAGS,-DAP_DEBUG_HAVE_GCC)
- fi
APR_ADDTO(CPPFLAGS, -DAP_DEBUG)
])dnl
typedef struct cmd_parms_struct cmd_parms;
-#ifdef AP_DEBUG_HAVE_GCC
+#ifdef AP_HAVE_DESIGNATED_INITIALIZER
typedef union {
const char *(*no_args) (cmd_parms *parms, void *mconfig);
# define AP_INIT_FLAG(directive, func, mconfig, where, help) \
{ directive, { .flag=func }, mconfig, where, FLAG, help }
-#else /* AP_DEBUG_HAVE_GCC */
+#else /* AP_HAVE_DESIGNATED_INITIALIZER */
typedef const char *(*cmd_func) ();
# define AP_INIT_FLAG(directive, func, mconfig, where, help) \
{ directive, func, mconfig, where, FLAG, help }
-#endif /* AP_DEBUG_HAVE_GCC */
+#endif /* AP_HAVE_DESIGNATED_INITIALIZER */
typedef struct command_struct command_rec;
/**