From: Bruno Haible Date: Tue, 10 Apr 2001 20:22:16 +0000 (+0000) Subject: Avoid build failure on MacOS X. X-Git-Tag: v0.10.37~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9892cb64c17d9e6998b759eb18dcb3f39ee299f0;p=thirdparty%2Fgettext.git Avoid build failure on MacOS X. --- diff --git a/intl/ChangeLog b/intl/ChangeLog index c40ec3cf3..8d435b9e6 100644 --- a/intl/ChangeLog +++ b/intl/ChangeLog @@ -1,3 +1,9 @@ +2001-04-09 Bruno Haible + + * loadmsgcat.c: Don't use GNU C extensions if __APPLE_CC__ is defined. + Apple's MacOS X compiler has not all the features that the regular + GCC with the same version number has. + 2001-04-07 Bruno Haible * gettextP.h (struct loaded_domain): Add codeset_cntr field. diff --git a/intl/loadmsgcat.c b/intl/loadmsgcat.c index ec9ebf078..d35298025 100644 --- a/intl/loadmsgcat.c +++ b/intl/loadmsgcat.c @@ -131,7 +131,7 @@ char *alloca (); cached by one of GCC's features. */ int _nl_msg_cat_cntr; -#if defined __GNUC__ \ +#if (defined __GNUC__ && !defined __APPLE_CC__) \ || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) /* These structs are the constant expression for the germanic plural