From af061e269a2cfbe79e7e565ebbe505f8f3b4ef09 Mon Sep 17 00:00:00 2001 From: scottmk Date: Thu, 8 Jan 2009 06:29:44 +0000 Subject: [PATCH] Add compilation guard; prepare for #inclusion in C++ git-svn-id: svn://svn.open-ils.org/ILS/trunk@11767 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/include/openils/oils_utils.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Open-ILS/include/openils/oils_utils.h b/Open-ILS/include/openils/oils_utils.h index 43ae358489..3c56103333 100644 --- a/Open-ILS/include/openils/oils_utils.h +++ b/Open-ILS/include/openils/oils_utils.h @@ -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 @@ jsonObject* oilsUtilsFetchWorkstationByName( const char* name ); int oilsUtilsIsDBTrue( const char* val ); + +#ifdef __cplusplus +} +#endif + +#endif -- 2.43.2