Add "extern C {...} to header files for C++ builds.
[freeradius.git] / src / include / radutmp.h
index 3b9c015..165a620 100644 (file)
@@ -7,6 +7,13 @@
 #ifndef _RADUTMP_H
 #define _RADUTMP_H
 
+#include <freeradius-devel/ident.h>
+RCSIDH(radutmp_h, "$Id$")
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
  *      Types of connection.
  */
@@ -52,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 */