From: John W. Eaton Date: Sat, 14 Nov 2009 07:24:25 +0000 (+0100) Subject: strftime.h: wrap funtion declaration in extern "C" block X-Git-Tag: stable/20091120~30 X-Git-Url: https://erislabs.net/gitweb/?a=commitdiff_plain;h=28fc486ccb05149d513c16e96ddb3c98b01c2517;p=gnulib.git strftime.h: wrap funtion declaration in extern "C" block * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration. (cherry picked from commit ee8909a98bbfffc6317e1e9273e1cb8d6341ea25) --- diff --git a/ChangeLog b/ChangeLog index 416bcf451..7982f4999 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-11-14 John W. Eaton + + strftime.h: wrap funtion declaration in extern "C" block + * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration. + 2009-11-13 Eric Blake getgroups: avoid compiler warning diff --git a/lib/strftime.h b/lib/strftime.h index c3c183ec9..1937d40cd 100644 --- a/lib/strftime.h +++ b/lib/strftime.h @@ -17,6 +17,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + /* Just like strftime, but with two more arguments: POSIX requires that strftime use the local timezone information. When __UTC is nonzero and tm->tm_zone is NULL or the empty string, @@ -24,3 +28,7 @@ %N directive. */ size_t nstrftime (char *, size_t, char const *, struct tm const *, int __utc, int __ns); + +#ifdef __cplusplus +} +#endif