# HG changeset patch # User Matti Hamalainen # Date 1451612390 -7200 # Node ID d5a34a3a602dedbbc4cc633f92588c0300179ae0 # Parent 1e6ad4be7f152290e23df52072a9bf11d9eeaf9c Add C++ include guards. diff -r 1e6ad4be7f15 -r d5a34a3a602d sidlib.h --- 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