Add "extern C {...} to header files for C++ builds.
[freeradius.git] / src / include / soh.h
index 8585e64..7dc17f9 100644 (file)
@@ -28,9 +28,17 @@ RCSIDH(soh_h, "$Id$")
 
 #include <freeradius-devel/libradius.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 int soh_verify(VALUE_PAIR *sohvp, const uint8_t *data, unsigned int data_len);
 uint16_t soh_pull_be_16(const uint8_t *p);
 uint32_t soh_pull_be_24(const uint8_t *p);
 uint32_t soh_pull_be_32(const uint8_t *p);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif