From: Bruno Haible Date: Tue, 21 May 2002 18:32:01 +0000 (+0000) Subject: Portability to BeOS. X-Git-Tag: v0.11.3~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=953c3980868a75bd734a8bf4e4b41df73efb336a;p=thirdparty%2Fgettext.git Portability to BeOS. --- diff --git a/lib/ChangeLog b/lib/ChangeLog index c5a54ce48..6c52356b1 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,9 @@ +2002-05-18 Bruno Haible + + * basename.h: Use __GLIBC__ >= 2, because BeOS (which defines __GLIBC__ + to -2) doesn't declare basename() properly. + * basename.c: Likewise. + 2002-05-18 Bruno Haible * Makefile.am (RM): New variable. diff --git a/lib/basename.c b/lib/basename.c index c121364c8..6daf723a5 100644 --- a/lib/basename.c +++ b/lib/basename.c @@ -26,7 +26,7 @@ /* Specification. */ #include "basename.h" -#ifndef __GLIBC__ +#if !(__GLIBC__ >= 2) #include #include diff --git a/lib/basename.h b/lib/basename.h index 617e0914a..38530ec1f 100644 --- a/lib/basename.h +++ b/lib/basename.h @@ -22,7 +22,7 @@ /* This is where basename() is declared. */ #include -#ifndef __GLIBC__ +#if !(__GLIBC__ >= 2) /* When not using the GNU libc we use the basename implementation we provide here. */ extern char *gnu_basename PARAMS ((const char *));