Add "extern C {...} to header files for C++ builds.
[freeradius.git] / src / include / stats.h
index 44d17cc..a781eb7 100644 (file)
 #include <freeradius-devel/ident.h>
 RCSIDH(stats_h, "$Id$")
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #ifdef WITH_STATS_64BIT
 typedef uint64_t fr_uint_t;
 #else
@@ -101,4 +105,8 @@ void radius_stats_ema(fr_stats_ema_t *ema,
 
 #endif
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* FR_STATS_H */