C++ requires extern "C" linkage specification to call functions from a C
library. Enclose the function definitions in subid.h in an extern "C"
block if compiling in C++ mode to achieve this.
Signed-off-by: Alois Wohlschlager <alois1@gmx-topmail.de>
SUBID_STATUS_ERROR = 3,
};
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* subid_init: initialize libsubid
*
*/
bool subid_ungrant_gid_range(struct subordinate_range *range);
+#ifdef __cplusplus
+}
+#endif
+
#define SUBID_NFIELDS 3
#endif