summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorsje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-12 19:29:53 +0000
committersje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-12 19:29:53 +0000
commitc72b6e6e9bac91035b2bcb2ec9968ec77536a72e (patch)
tree0b751a2279d96a98d48d3f5e9a0175b7cafebd6f /include
parent0de999f197a88a5f7a1cd00f30d901228bab4558 (diff)
downloadgcc-c72b6e6e9bac91035b2bcb2ec9968ec77536a72e.tar.gz
libiberty.h: Do not define empty basename prototype.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99626 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog4
-rw-r--r--include/libiberty.h5
2 files changed, 8 insertions, 1 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 91ee33d181d..0e7fcaf41df 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -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
diff --git a/include/libiberty.h b/include/libiberty.h
index 3f51e41312d..ae0ab2bde08 100644
--- a/include/libiberty.h
+++ b/include/libiberty.h
@@ -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