Skip to content

Commit

Permalink
merge from gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
djdelorierh committed May 22, 2014
1 parent 03e3cf9 commit ee9b1ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions include/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2014-05-21 John Marino <[email protected]>

* liberty.h: Use basename function on DragonFly.

2014-05-01 Steve Ellcey <[email protected]>

* include/longlong.h: Use 'defined()' to check __mips16.
Expand Down
5 changes: 4 additions & 1 deletion include/libiberty.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ extern int countargv (char**);
to find the declaration so provide a fully prototyped one. If it
is 1, we found it so don't provide any declaration at all. */
#if !HAVE_DECL_BASENAME
#if defined (__GNU_LIBRARY__ ) || defined (__linux__) || defined (__FreeBSD__) || defined (__OpenBSD__) || defined(__NetBSD__) || defined (__CYGWIN__) || defined (__CYGWIN32__) || defined (__MINGW32__) || defined (HAVE_DECL_BASENAME)
#if defined (__GNU_LIBRARY__ ) || defined (__linux__) \
|| defined (__FreeBSD__) || defined (__OpenBSD__) || defined (__NetBSD__) \
|| defined (__CYGWIN__) || defined (__CYGWIN32__) || defined (__MINGW32__) \
|| defined (__DragonFly__) || defined (HAVE_DECL_BASENAME)
extern char *basename (const char *) ATTRIBUTE_RETURNS_NONNULL ATTRIBUTE_NONNULL(1);
#else
/* Do not allow basename to be used if there is no prototype seen. We
Expand Down

0 comments on commit ee9b1ce

Please sign in to comment.