]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libiberty.h: Do not define empty basename prototype.
authorSteve Ellcey <sje@cup.hp.com>
Thu, 12 May 2005 19:29:53 +0000 (19:29 +0000)
committerSteve Ellcey <sje@gcc.gnu.org>
Thu, 12 May 2005 19:29:53 +0000 (19:29 +0000)
From-SVN: r99626

include/ChangeLog
include/libiberty.h

index 91ee33d181d950bd18b909529b459ebf9ef169c1..0e7fcaf41df4f5f4ce091e173cc06660400842b7 100644 (file)
@@ -1,3 +1,7 @@
+2005-05-12  Steve Ellcey  <sje@cup.hp.com>
+
+       libiberty.h: Do not define empty basename prototype.
+
 2005-05-10  Nick Clifton  <nickc@redhat.com>
 
        * Update the address and phone number of the FSF organization in
index 3f51e41312d1a111e4540537a20468f147a45e82..ae0ab2bde08ac45fd98d46425e29742d98741a62 100644 (file)
@@ -97,7 +97,10 @@ extern char **dupargv (char **) ATTRIBUTE_MALLOC;
 #if defined (__GNU_LIBRARY__ ) || defined (__linux__) || defined (__FreeBSD__) || defined (__OpenBSD__) || defined(__NetBSD__) || defined (__CYGWIN__) || defined (__CYGWIN32__) || defined (__MINGW32__) || defined (HAVE_DECL_BASENAME)
 extern char *basename (const char *);
 #else
-extern char *basename ();
+/* Do not allow basename to be used if there is no prototype seen.  We
+   either need to use the above prototype or have one from
+   autoconf which would result in HAVE_DECL_BASENAME being set.  */
+#define basename basename_cannot_be_used_without_a_prototype
 #endif
 #endif