httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: httpd-2.0/include http_config.h
Date Sun, 13 May 2001 12:21:25 GMT
trawick     01/05/13 05:21:25

  Modified:    .        configure.in
               include  http_config.h
  Log:
  Separate enablement of AP_DEBUG code from enablement of code
  which depends on the compiler supporting designated initializers.
  
  Revision  Changes    Path
  1.156     +3 -3      httpd-2.0/configure.in
  
  Index: configure.in
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/configure.in,v
  retrieving revision 1.155
  retrieving revision 1.156
  diff -u -r1.155 -r1.156
  --- configure.in	2001/05/13 10:37:04	1.155
  +++ configure.in	2001/05/13 12:21:24	1.156
  @@ -190,6 +190,9 @@
   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
   
  @@ -209,9 +212,6 @@
   
   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
   
  
  
  
  1.81      +3 -3      httpd-2.0/include/http_config.h
  
  Index: http_config.h
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/include/http_config.h,v
  retrieving revision 1.80
  retrieving revision 1.81
  diff -u -r1.80 -r1.81
  --- http_config.h	2001/05/13 10:37:06	1.80
  +++ http_config.h	2001/05/13 12:21:25	1.81
  @@ -120,7 +120,7 @@
   
   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);
  @@ -162,7 +162,7 @@
   # 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) ();
   
  @@ -194,7 +194,7 @@
   # 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; 
   /**
  
  
  

Mime
View raw message