]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(basename): Define without parameter so that use as function pointer
authorUlrich Drepper <drepper@redhat.com>
Wed, 23 Feb 2000 05:40:33 +0000 (05:40 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 23 Feb 2000 05:40:33 +0000 (05:40 +0000)
also works.

misc/libgen.h

index 87c9d3f9677c6ee8574b8f51d06063201cde894c..a7f026e092723ffbb14390c24f488072da733320 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -33,7 +33,7 @@ extern char *dirname __P ((char *__path));
    <string.h>) and only if this header is included make the XPG
    version available under the real name.  */
 extern char *__xpg_basename __P ((char *__path));
-#define basename(path) __xpg_basename (path)
+#define basename       __xpg_basename
 
 __END_DECLS