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

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Jan 8 13:29:36 EST 2009


Author: scottmk
Date: 2009-01-08 13:29:33 -0500 (Thu, 08 Jan 2009)
New Revision: 1595

Modified:
   trunk/include/opensrf/string_array.h
Log:
Move nested headers into complation guard;
prepare for #inclusion in C++


Modified: trunk/include/opensrf/string_array.h
===================================================================
--- trunk/include/opensrf/string_array.h	2009-01-08 18:23:42 UTC (rev 1594)
+++ trunk/include/opensrf/string_array.h	2009-01-08 18:29:33 UTC (rev 1595)
@@ -1,3 +1,6 @@
+#ifndef STRING_ARRAY_H
+#define STRING_ARRAY_H
+
 #include <stdio.h>
 
 #include <opensrf/utils.h>
@@ -4,11 +7,12 @@
 #include <opensrf/log.h>
 #include <opensrf/osrf_list.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define STRING_ARRAY_MAX_SIZE 4096
 
-#ifndef STRING_ARRAY_H
-#define STRING_ARRAY_H
-
 #define OSRF_STRING_ARRAY_FREE(arr)\
     if(arr) {osrfListFree(arr->list); free(arr);}
         
@@ -35,4 +39,8 @@
 
 void osrfStringArrayRemove( osrfStringArray* arr, char* str);
 
+#ifdef __cplusplus
+}
 #endif
+
+#endif



More information about the opensrf-commits mailing list