changeset 12286:0ef15d536366

strftime.h: wrap funtion declaration in extern "C" block * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
author John W. Eaton <jwe@gnu.org>
date Sat, 14 Nov 2009 08:24:25 +0100
parents 6af71b5d90fd
children 0c467c7c0132
files ChangeLog lib/strftime.h
diffstat 2 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-11-14  John W. Eaton  <jwe@gnu.org>
+
+	strftime.h: wrap funtion declaration in extern "C" block
+	* lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
+
 2009-11-13  Eric Blake  <ebb9@byu.net>
 
 	getgroups: avoid compiler warning
--- a/lib/strftime.h
+++ b/lib/strftime.h
@@ -17,6 +17,10 @@
 
 #include <time.h>
 
+#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