Rename macro for compilation guard, to avoid conflict with
authorscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 8 Jan 2009 20:18:33 +0000 (20:18 +0000)
committerscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 8 Jan 2009 20:18:33 +0000 (20:18 +0000)
osrf_hash.h.  Prepare for #inclusion in C++.

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

include/opensrf/osrf_big_hash.h

index a738755..dca5b32 100644 (file)
@@ -1,10 +1,14 @@
-#ifndef OSRF_HASH_H
-#define OSRF_HASH_H
+#ifndef OSRF_BIG_HASH_H
+#define OSRF_BIG_HASH_H
 
 #include <Judy.h>
 #include <opensrf/utils.h>
 #include <opensrf/string_array.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define OSRF_HASH_MAXKEY 256
 
 struct __osrfBigHashStruct {
@@ -84,4 +88,8 @@ void osrfBigHashIteratorFree( osrfBigHashIterator* itr );
 
 void osrfBigHashIteratorReset( osrfBigHashIterator* itr );
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif