On Thu, Dec 08, 2005 at 09:12:07PM +0000, Phil Endecott wrote:
> I'm the author of Anyterm (http://anyterm.org), which includes an Apache 
> module.  Although I haven't yet tried to compile it for Apache 2.2 some 
> of my users have, and they're having problems.  See 
> http://anyterm.org/forums/viewtopic.php?pid=768#p768.  It looks as if 
> the definition of AP_INIT_TAKE1 has changed at some point, and now looks 
> like this:

It didn't change in 2.2.x, as Nik mentioned the only thing that changed 
is where AP_HAVE_DESIGNATED_INITIALIZER is defined.

If you comment-out the #define for that constant in ap_config_auto.h, 
and apply the patch below to ap_config.h does your C++ module work OK?

Index: include/ap_config.h
===================================================================
--- include/ap_config.h (revision 355450)
+++ include/ap_config.h (working copy)
@@ -252,4 +252,9 @@
 #define AP_HAVE_RELIABLE_PIPED_LOGS TRUE
 #endif
 
+#if (defined(__GNUC__) && !defined(__cplusplus))                \
+     || (defined(__STDC_VERSION) && __STDC_VERSION__ > 199901L)
+#define AP_HAVE_DESIGNATED_INITIALIZER
+#endif
+
 #endif /* AP_CONFIG_H */

Reply via email to