From: scottmk Date: Thu, 8 Jan 2009 18:29:33 +0000 (+0000) Subject: Move nested headers into complation guard; X-Git-Tag: osrf_rel_2_0_1~449 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=421d843d35aebb2665e64a0c99fc281e8bc1f4a6;p=OpenSRF.git Move nested headers into complation guard; prepare for #inclusion in C++ git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1595 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/include/opensrf/string_array.h b/include/opensrf/string_array.h index b78b0b8..0df884d 100644 --- a/include/opensrf/string_array.h +++ b/include/opensrf/string_array.h @@ -1,13 +1,17 @@ +#ifndef STRING_ARRAY_H +#define STRING_ARRAY_H + #include #include #include #include -#define STRING_ARRAY_MAX_SIZE 4096 +#ifdef __cplusplus +extern "C" { +#endif -#ifndef STRING_ARRAY_H -#define STRING_ARRAY_H +#define STRING_ARRAY_MAX_SIZE 4096 #define OSRF_STRING_ARRAY_FREE(arr)\ if(arr) {osrfListFree(arr->list); free(arr);} @@ -35,4 +39,8 @@ int string_array_get_total_size(osrfStringArray* arr); void osrfStringArrayRemove( osrfStringArray* arr, char* str); +#ifdef __cplusplus +} +#endif + #endif