BUG in libintl - gettext should not be defined as macros

Bruno Haible bruno at clisp.org
Fri Jun 7 13:50:40 BST 2002


Christian Casteyde writes:
> I noticed that kdevelop 3.0.1 do not compile with gcc 3.1 & gettext 0.11.2
> with -O flag because :
> 1. this cause the __OPTIMIZE__ macro to be defined ;
> 2. that cause the gettexte function to be defined as a macro ;
> 3. that prevents code such as the following to compile if optimized :
>
> #include <libintl.h>
>
> class A
> {
> public:
>         char *gettext()
>         {
>                 return "az";
>         }
> };

Thanks for reporting this; it is indeed a bad bug and will be fixed in
gettext 0.11.3.

Bruno

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list