strftime.h: wrap funtion declaration in extern "C" block
authorJohn W. Eaton <jwe@gnu.org>
Sat, 14 Nov 2009 07:24:25 +0000 (08:24 +0100)
committerIan Beckwith <ianb@erislabs.net>
Sun, 15 Nov 2009 03:24:34 +0000 (03:24 +0000)
* lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
(cherry picked from commit ee8909a98bbfffc6317e1e9273e1cb8d6341ea25)

ChangeLog
lib/strftime.h

index 416bcf4..7982f49 100644 (file)
--- 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
index c3c183e..1937d40 100644 (file)
 
 #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