[open-ils-commits] r11767 - trunk/Open-ILS/include/openils
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jan 8 01:29:46 EST 2009
Author: scottmk
Date: 2009-01-08 01:29:44 -0500 (Thu, 08 Jan 2009)
New Revision: 11767
Modified:
trunk/Open-ILS/include/openils/oils_utils.h
Log:
Add compilation guard; prepare for #inclusion in C++
Modified: trunk/Open-ILS/include/openils/oils_utils.h
===================================================================
--- trunk/Open-ILS/include/openils/oils_utils.h 2009-01-08 06:05:47 UTC (rev 11766)
+++ trunk/Open-ILS/include/openils/oils_utils.h 2009-01-08 06:29:44 UTC (rev 11767)
@@ -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"
@@ -11,6 +14,10 @@
#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 @@
int oilsUtilsIsDBTrue( const char* val );
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
More information about the open-ils-commits
mailing list