[Opensrf-commits] r1581 - trunk/include/opensrf

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Jan 8 10:05:00 EST 2009


Author: scottmk
Date: 2009-01-08 10:04:58 -0500 (Thu, 08 Jan 2009)
New Revision: 1581

Modified:
   trunk/include/opensrf/osrf_cache.h
Log:
Add compilation guard; prepare for #inclusion in C++


Modified: trunk/include/opensrf/osrf_cache.h
===================================================================
--- trunk/include/opensrf/osrf_cache.h	2009-01-08 14:50:18 UTC (rev 1580)
+++ trunk/include/opensrf/osrf_cache.h	2009-01-08 15:04:58 UTC (rev 1581)
@@ -13,11 +13,17 @@
 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 @@
  * Clean up the global cache handles, etc.
  */
 void osrfCacheCleanup();
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif



More information about the opensrf-commits mailing list