]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Portability to BeOS.
authorBruno Haible <bruno@clisp.org>
Tue, 21 May 2002 18:32:01 +0000 (18:32 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:07:59 +0000 (12:07 +0200)
lib/ChangeLog
lib/basename.c
lib/basename.h

index c5a54ce48b9fb550bde1f5c331aa7b136c5a1442..6c52356b193c3d4cf6cf30dcf734794d8e384686 100644 (file)
@@ -1,3 +1,9 @@
+2002-05-18  Bruno Haible  <bruno@clisp.org>
+
+       * 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  <bruno@clisp.org>
 
        * Makefile.am (RM): New variable.
index c121364c86e26917d8628f2edc22c512b6f53efe..6daf723a535b12c3636f407752de399f90706d94 100644 (file)
@@ -26,7 +26,7 @@
 /* Specification.  */
 #include "basename.h"
 
-#ifndef __GLIBC__
+#if !(__GLIBC__ >= 2)
 
 #include <stdio.h>
 #include <assert.h>
index 617e0914a4c2632d2435e7cd94763046c2010f14..38530ec1f4fe92e910725186b093e9e1fc742af6 100644 (file)
@@ -22,7 +22,7 @@
 /* This is where basename() is declared.  */
 #include <string.h>
 
-#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 *));