Add "extern C {...} to header files for C++ builds.
[freeradius.git] / src / include / modcall.h
index 89ec4dc..9a95565 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef FR_MODCALL_H
+#define FR_MODCALL_H
+
 /* modcall.h: the outside interface to the module-calling tree. Includes
  * functions to build the tree from the config file, and to call it by
  * feeding it REQUESTs.
@@ -6,6 +9,10 @@
 
 #include <freeradius-devel/conffile.h> /* Need CONF_* definitions */
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
  *     For each authorize/authtype/etc, we have an ordered
  *     tree of instances to call.  This data structure keeps track
@@ -32,3 +39,9 @@ void add_to_modcallable(modcallable **parent, modcallable *this,
 
 /* Free a tree returned by compile_modgroup or compile_modsingle */
 void modcallable_free(modcallable **pc);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif