Add compilation guard; prepare for #inclusion in C++
authorscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 8 Jan 2009 06:29:44 +0000 (06:29 +0000)
committerscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 8 Jan 2009 06:29:44 +0000 (06:29 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@11767 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/include/openils/oils_utils.h

index 43ae358..3c56103 100644 (file)
@@ -1,6 +1,9 @@
 #include "opensrf/osrf_json.h"
 #include "opensrf/log.h"
 
+#ifndef OILS_UTILS_H
+#define OILS_UTILS_H
+
 // XXX replacing this with liboils_idl implementation
 // #include "openils/fieldmapper_lookup.h"
 
 #include "opensrf/osrf_app_session.h"
 #include "opensrf/osrf_settings.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /**
   Loads the IDL. Returns NULL on failure
   or a pointer to the IDL data structure on success.
@@ -110,3 +117,9 @@ jsonObject* oilsUtilsFetchWorkstationByName( const char* name );
 
 
 int oilsUtilsIsDBTrue( const char* val );
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif