X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fstrdup.h;fp=lib%2Fstrdup.h;h=73e66e3d7ad8993834ddc14ba53d394f4f4ba002;hb=077d6cd0daebf045a337ddd9ca9d599808aa47fb;hp=a0d5fb929cef0263e3f9956397717730493806f9;hpb=f5718e64b861e378ccec20de73ea31552692a2f7;p=gnulib.git diff --git a/lib/strdup.h b/lib/strdup.h index a0d5fb929..73e66e3d7 100644 --- a/lib/strdup.h +++ b/lib/strdup.h @@ -1,5 +1,5 @@ /* strdup.h -- duplicate a string - Copyright (C) 2004 Free Software Foundation, Inc. + Copyright (C) 2004, 2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,9 +21,19 @@ /* Get strdup declaration, if available. */ #include +#ifdef __cplusplus +extern "C" { +#endif + + #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 + +#ifdef __cplusplus +} +#endif + #endif /* STRDUP_H_ */