[Opensrf-commits] r1588 - trunk/include/opensrf

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Jan 8 11:47:05 EST 2009


Author: scottmk
Date: 2009-01-08 11:47:01 -0500 (Thu, 08 Jan 2009)
New Revision: 1588

Modified:
   trunk/include/opensrf/osrfConfig.h
Log:
Rename the macro for compilation guard; prepare for #inclusion in C++


Modified: trunk/include/opensrf/osrfConfig.h
===================================================================
--- trunk/include/opensrf/osrfConfig.h	2009-01-08 16:31:05 UTC (rev 1587)
+++ trunk/include/opensrf/osrfConfig.h	2009-01-08 16:47:01 UTC (rev 1588)
@@ -13,14 +13,18 @@
 GNU General Public License for more details.
 */
 
-#ifndef _OSRF_CONFIG_H
-#define _OSRF_CONFIG_H
+#ifndef OSRF_CONFIG_H
+#define OSRF_CONFIG_H
 
 #include <opensrf/xml_utils.h>
 #include <opensrf/utils.h>
 #include <opensrf/string_array.h>
 #include <opensrf/osrf_json.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef struct {
 	jsonObject* config;
 	char* configContext;
@@ -108,5 +112,8 @@
 int osrfConfigGetValueList(const osrfConfig* cfg, osrfStringArray* arr,
 		const char* path, ...);
 
+#ifdef __cplusplus
+}
+#endif
 
 #endif



More information about the opensrf-commits mailing list