diff options
author | Steve Ellcey <sje@cup.hp.com> | 2005-05-12 19:29:53 +0000 |
---|---|---|
committer | Steve Ellcey <sje@gcc.gnu.org> | 2005-05-12 19:29:53 +0000 |
commit | dbaef7e22b947b3b8aaa226d6dbc4bb05a6c40de (patch) | |
tree | 0b751a2279d96a98d48d3f5e9a0175b7cafebd6f /include/libiberty.h | |
parent | 98f464e05898aa368da60d94c24b7818552eb0f7 (diff) | |
download | gcc-dbaef7e22b947b3b8aaa226d6dbc4bb05a6c40de.zip gcc-dbaef7e22b947b3b8aaa226d6dbc4bb05a6c40de.tar.gz gcc-dbaef7e22b947b3b8aaa226d6dbc4bb05a6c40de.tar.bz2 |
libiberty.h: Do not define empty basename prototype.
From-SVN: r99626
Diffstat (limited to 'include/libiberty.h')
-rw-r--r-- | include/libiberty.h | 5 |
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 |