projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build-aux/compile: sync from automake
[gnulib.git]
/
lib
/
string.in.h
diff --git
a/lib/string.in.h
b/lib/string.in.h
index
a193d89
..
7d508cc
100644
(file)
--- a/
lib/string.in.h
+++ b/
lib/string.in.h
@@
-18,7
+18,9
@@
#ifndef _GL_STRING_H
#ifndef _GL_STRING_H
+#if __GNUC__ >= 3
@PRAGMA_SYSTEM_HEADER@
@PRAGMA_SYSTEM_HEADER@
+#endif
/* The include_next requires a split double-inclusion guard. */
#@INCLUDE_NEXT@ @NEXT_STRING_H@
/* The include_next requires a split double-inclusion guard. */
#@INCLUDE_NEXT@ @NEXT_STRING_H@
@@
-167,7
+169,11
@@
extern char *strchrnul (char const *__s, int __c_in)
/* Duplicate S, returning an identical malloc'd string. */
#if @GNULIB_STRDUP@
/* Duplicate S, returning an identical malloc'd string. */
#if @GNULIB_STRDUP@
-# if ! @HAVE_DECL_STRDUP@ && ! defined strdup
+# if @REPLACE_STRDUP@
+# undef strdup
+# define strdup rpl_strdup
+# endif
+# if !(@HAVE_DECL_STRDUP@ || defined strdup) || @REPLACE_STRDUP@
extern char *strdup (char const *__s);
# endif
#elif defined GNULIB_POSIXCHECK
extern char *strdup (char const *__s);
# endif
#elif defined GNULIB_POSIXCHECK