Add "extern C {...} to header files for C++ builds.
[freeradius.git] / src / include / radutmp.h
index 997c9ea..165a620 100644 (file)
 #include <freeradius-devel/ident.h>
 RCSIDH(radutmp_h, "$Id$")
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
  *      Types of connection.
  */
@@ -55,4 +59,8 @@ struct radutmp {
 #define RUT_NAMESIZE sizeof(((struct radutmp *) NULL)->login)
 #define RUT_SESSSIZE sizeof(((struct radutmp *) NULL)->session_id)
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _RADUTMP_H */