]> git.notmuchmail.org Git - notmuch/blobdiff - util/gmime-extra.h
util: make remaining headers includable from C++
[notmuch] / util / gmime-extra.h
index ca822b8cf53b4e0b1b0509b3dcb5d4d92d46ca54..5d8c52f783a7233f2d41fea529fc60574134c31b 100644 (file)
@@ -1,11 +1,13 @@
 #ifndef _GMIME_EXTRA_H
 #define _GMIME_EXTRA_H
 #include <gmime/gmime.h>
-
-GMimeStream *g_mime_stream_stdout_new(void);
-
 #include <talloc.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+GMimeStream *g_mime_stream_stdout_new(void);
 
 #if (GMIME_MAJOR_VERSION < 3)
 
@@ -100,4 +102,8 @@ gint64 g_mime_utils_header_decode_date_unix (const char *date);
  */
 const char * g_mime_certificate_get_valid_userid (GMimeCertificate *cert);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif