diff include/freeDiameter/libfdcore.h @ 904:b839a1b1c1da

Make freeDiameter headers more C++ friendly -- thank you Thomas
author Sebastien Decugis <sdecugis@freediameter.net>
date Sat, 15 Dec 2012 10:55:06 +0100
parents c0a88c1bcc1e
children 1bc052ef961f cce5d4bace82
line wrap: on
line diff
--- a/include/freeDiameter/libfdcore.h	Fri Dec 14 21:24:34 2012 +0100
+++ b/include/freeDiameter/libfdcore.h	Sat Dec 15 10:55:06 2012 +0100
@@ -37,6 +37,10 @@
 #define _LIBFDCORE_H
 
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include <freeDiameter/libfdproto.h>
 #include <gnutls/gnutls.h>
 #include <gnutls/x509.h>
@@ -823,4 +827,8 @@
 int fd_app_check_common(struct fd_list * list1, struct fd_list * list2, int * common_found);
 int fd_app_empty(struct fd_list * list);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _LIBFDCORE_H */
"Welcome to our mercurial repository"