X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fstrdup.h;h=73e66e3d7ad8993834ddc14ba53d394f4f4ba002;hb=bbdcfead98c6d3536215c3f0f603e4f92a28d26b;hp=d58bd13e260874fb8b1d864e94740278b1fd524d;hpb=e76326b7a4aecb5051fc6e5859a0a54d98f1d152;p=gnulib.git diff --git a/lib/strdup.h b/lib/strdup.h index d58bd13e2..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 @@ -13,7 +13,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, - Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef STRDUP_H_ #define STRDUP_H_ @@ -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_ */