projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prefer nl_langinfo over localeconv.
[gnulib.git]
/
lib
/
strdup.c
diff --git
a/lib/strdup.c
b/lib/strdup.c
index
7cff51b
..
c614108
100644
(file)
--- a/
lib/strdup.c
+++ b/
lib/strdup.c
@@
-1,4
+1,4
@@
-/* Copyright (C) 1991, 1996, 1997, 1998, 2002, 2003, 2004, 2006 Free
+/* Copyright (C) 1991, 1996, 1997, 1998, 2002, 2003, 2004, 2006
, 2007
Free
Software Foundation, Inc.
This file is part of the GNU C Library.
Software Foundation, Inc.
This file is part of the GNU C Library.
@@
-19,15
+19,17
@@
#ifndef _LIBC
# include <config.h>
#ifndef _LIBC
# include <config.h>
-/* Get specification. */
-# include "strdup.h"
#endif
#endif
-#include <stdlib.h>
+/* Get specification. */
#include <string.h>
#include <string.h>
+#include <stdlib.h>
+
#undef __strdup
#undef __strdup
-#undef strdup
+#ifdef _LIBC
+# undef strdup
+#endif
#ifndef weak_alias
# define __strdup strdup
#ifndef weak_alias
# define __strdup strdup