From: scottmk Date: Thu, 8 Jan 2009 18:09:48 +0000 (+0000) Subject: Move nested headers into complation guard; X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9228db80639e3ff8720d072eb129d4e6e3927aba;p=Evergreen.git Move nested headers into complation guard; prepare for #inclusion in C++ git-svn-id: svn://svn.open-ils.org/ILS/trunk@11769 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/include/openils/oils_idl.h b/Open-ILS/include/openils/oils_idl.h index de44f55e34..d8a1093a5f 100644 --- a/Open-ILS/include/openils/oils_idl.h +++ b/Open-ILS/include/openils/oils_idl.h @@ -1,9 +1,13 @@ +#ifndef OILS_IDL_API +#define OILS_IDL_API + #include "opensrf/log.h" #include "opensrf/utils.h" #include "opensrf/osrf_hash.h" -#ifndef OILS_IDL_API -#define OILS_IDL_API +#ifdef __cplusplus +extern "C" { +#endif osrfHash* oilsIDLInit( const char* ); osrfHash* oilsIDL(void); @@ -48,4 +52,8 @@ int oilsIDL_classIsFieldmapper(const char*); char * oilsIDL_pton(const char *, int); int oilsIDL_ntop(const char *, const char *); +#ifdef __cplusplus +} +#endif + #endif