# HG changeset patch # User John W. Eaton # Date 1258183465 -3600 # Node ID 0ef15d53636695d179995f83fe1c6dbc5a5b54e0 # Parent 6af71b5d90fdaa6d52b8ff23107bfa2dfa6669ff strftime.h: wrap funtion declaration in extern "C" block * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration. diff --git a/ChangeLog b/ChangeLog --- 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 --- 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