From 000cb07db84d83d3e746b227ac9f3f455c050b8a Mon Sep 17 00:00:00 2001 From: scottmk Date: Thu, 8 Jan 2009 16:47:01 +0000 Subject: [PATCH] Rename the macro for compilation guard; prepare for #inclusion in C++ git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1588 9efc2488-bf62-4759-914b-345cdb29e865 --- include/opensrf/osrfConfig.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/include/opensrf/osrfConfig.h b/include/opensrf/osrfConfig.h index 64f9ca6..e732497 100644 --- a/include/opensrf/osrfConfig.h +++ b/include/opensrf/osrfConfig.h @@ -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 #include #include #include +#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 -- 2.43.2