From: scottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865> Date: Thu, 8 Jan 2009 16:47:01 +0000 (+0000) Subject: Rename the macro for compilation guard; prepare for #inclusion in C++ X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=000cb07db84d83d3e746b227ac9f3f455c050b8a;p=opensrf%2Fbjwebb.git 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 --- 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 <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