changeset 72:d5a34a3a602d

Add C++ include guards.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 01 Jan 2016 03:39:50 +0200
parents 1e6ad4be7f15
children 2b2376f1b0cc
files sidlib.h
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sidlib.h	Fri Jan 01 03:39:29 2016 +0200
+++ b/sidlib.h	Fri Jan 01 03:39:50 2016 +0200
@@ -9,6 +9,10 @@
 #include "th_util.h"
 #include "th_crypto.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 
 // Some constants
 #define PSID_MAGIC_LEN    4
@@ -68,4 +72,7 @@
 const char *siGetSIDModelStr(const int flags);
 
 
+#ifdef __cplusplus
+}
+#endif
 #endif // SIDLIB_H