httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cantor, Scott" <canto...@osu.edu>
Subject Re: AP_INIT_TAKEn macros / gcc 4.6.3?
Date Tue, 24 Jul 2012 21:17:51 GMT
On 7/24/12 2:29 PM, "Nick Kew" <niq@apache.org> wrote:
>
>On 24 Jul 2012, at 18:23, Cantor, Scott wrote:
>
>> I'm still investigating, just wondering if anybody has seen this.
>
>Yes.  It's not new: C++ doesn't like those macros.
>
>Simple fix is to enclose them in extern "C" { ... }.
>Alternatively, expand them by hand as per C rules.

Actually, I had this wrapped already. What broke is that this particular
build is turning on AP_HAVE_DESIGNATED_INITIALIZER, which is based on:

#if (defined(__GNUC__) && !defined(__cplusplus))                \
     || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)
#define AP_HAVE_DESIGNATED_INITIALIZER
#endif

The second half of that ifdef is activating even for g++, which is
definitely not supposed to happen. Not sure why yet.


-- Scott


Mime
View raw message