diff lib/strdup.h @ 5160:e70798064461

Only declare strdup if it isn't declared by the system.
author Paul Eggert <eggert@cs.ucla.edu>
date Sat, 07 Aug 2004 02:58:12 +0000 (2004-08-07)
parents c325bdf744a4
children a48fb0e98c8c
line wrap: on
line diff
--- a/lib/strdup.h
+++ b/lib/strdup.h
@@ -21,7 +21,7 @@
 /* Get strdup declaration, if available.  */
 #include <string.h>
 
-#if !HAVE_DECL_STRDUP && !defined strdup
+#if defined HAVE_DECL_STRDUP && !HAVE_DECL_STRDUP && !defined strdup
 /* Duplicate S, returning an identical malloc'd string.  */
 extern char *strdup (const char *s);
 #endif