From fd4a565db1ba6ad1d238170a0ab5406694375914 Mon Sep 17 00:00:00 2001 From: scottmk Date: Thu, 8 Jan 2009 15:04:58 +0000 Subject: [PATCH] Add compilation guard; prepare for #inclusion in C++ git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1581 9efc2488-bf62-4759-914b-345cdb29e865 --- include/opensrf/osrf_cache.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/opensrf/osrf_cache.h b/include/opensrf/osrf_cache.h index 7545237..6b54f50 100644 --- a/include/opensrf/osrf_cache.h +++ b/include/opensrf/osrf_cache.h @@ -13,11 +13,17 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. */ +#ifndef OSRF_CACHE_H +#define OSRF_CACHE_H #include #include #include +#ifdef __cplusplus +extern "C" { +#endif + /** osrfCache is a globally shared cache API */ @@ -84,3 +90,9 @@ int osrfCacheSetExpire( time_t seconds, const char* key, ... ); * Clean up the global cache handles, etc. */ void osrfCacheCleanup(); + +#ifdef __cplusplus +} +#endif + +#endif -- 2.43.2