Add "extern C {...} to header files for C++ builds.
[freeradius.git] / src / include / detail.h
index c781619..e3c13ee 100644 (file)
 #include <freeradius-devel/ident.h>
 RCSIDH(detail_h, "$Id$")
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef enum detail_state_t {
   STATE_UNOPENED = 0,
   STATE_UNLOCKED,
@@ -56,4 +60,8 @@ int detail_encode(UNUSED rad_listen_t *this, UNUSED REQUEST *request);
 int detail_decode(UNUSED rad_listen_t *this, UNUSED REQUEST *request);
 int detail_parse(CONF_SECTION *cs, rad_listen_t *this);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* DETAIL_H */