From: Bruno Haible Date: Wed, 4 Apr 2001 21:30:31 +0000 (+0000) Subject: Use the setlocale return value if on glibc system but compiled outside X-Git-Tag: v0.10.37~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2b841f8bda96fee7fa80a1f678fc12f37e3d605;p=thirdparty%2Fgettext.git Use the setlocale return value if on glibc system but compiled outside glibc. --- diff --git a/intl/ChangeLog b/intl/ChangeLog index 90eeef96a..fac7ddd78 100644 --- a/intl/ChangeLog +++ b/intl/ChangeLog @@ -1,3 +1,7 @@ +2001-04-04 Bruno Haible + + * dcigettext.c (HAVE_LOCALE_NULL): Define also if __GNU_LIBRARY__. + 2001-04-04 Bruno Haible * Makefile.in (libdir, includedir, datadir): Use the autoconf diff --git a/intl/dcigettext.c b/intl/dcigettext.c index de08f7e9d..4b1dfb377 100644 --- a/intl/dcigettext.c +++ b/intl/dcigettext.c @@ -203,7 +203,7 @@ static void *mempcpy PARAMS ((void *dest, const void *src, size_t n)); However it does not specify the exact format. Neither do SUSV2 and ISO C 99. So we can use this feature only on selected systems (e.g. those using GNU C Library). */ -#ifdef _LIBC +#if defined _LIBC || defined __GNU_LIBRARY__ # define HAVE_LOCALE_NULL #endif