Rename the macro for compilation guard; prepare for #inclusion in C++
authorscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 8 Jan 2009 16:47:01 +0000 (16:47 +0000)
committerscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 8 Jan 2009 16:47:01 +0000 (16:47 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1588 9efc2488-bf62-4759-914b-345cdb29e865

include/opensrf/osrfConfig.h

index 64f9ca6..e732497 100644 (file)
@@ -13,14 +13,18 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 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 @@ jsonObject* osrfConfigGetValueObject(osrfConfig* cfg, char* path, ...);
 int osrfConfigGetValueList(const osrfConfig* cfg, osrfStringArray* arr,
                const char* path, ...);
 
+#ifdef __cplusplus
+}
+#endif
 
 #endif