aboutsummaryrefslogtreecommitdiff
path: root/include/libiberty.h
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2005-05-12 20:00:35 +0000
committerDJ Delorie <dj@redhat.com>2005-05-12 20:00:35 +0000
commit58fc7cdaf9c7a3b0cef76763fbba66408e0a2bc5 (patch)
treeee107cf74606fba02547c59be60ad422280f5517 /include/libiberty.h
parentcda9ed90770439eb1104a249dba187ea3e4194a1 (diff)
downloadnewlib-58fc7cdaf9c7a3b0cef76763fbba66408e0a2bc5.zip
newlib-58fc7cdaf9c7a3b0cef76763fbba66408e0a2bc5.tar.gz
newlib-58fc7cdaf9c7a3b0cef76763fbba66408e0a2bc5.tar.bz2
merge from gcc
Diffstat (limited to 'include/libiberty.h')
-rw-r--r--include/libiberty.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/libiberty.h b/include/libiberty.h
index 3f51e41..ae0ab2b 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