From: scottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Date: Thu, 8 Jan 2009 15:04:58 +0000 (+0000)
Subject: Add compilation guard; prepare for #inclusion in C++
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fd4a565db1ba6ad1d238170a0ab5406694375914;p=opensrf%2Fbjwebb.git

Add compilation guard; prepare for #inclusion in C++


git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1581 9efc2488-bf62-4759-914b-345cdb29e865
---

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 <opensrf/osrf_json.h>
 #include <memcache.h>
 #include <opensrf/log.h>
 
+#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