From 421d843d35aebb2665e64a0c99fc281e8bc1f4a6 Mon Sep 17 00:00:00 2001 From: scottmk Date: Thu, 8 Jan 2009 18:29:33 +0000 Subject: [PATCH] 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 --- include/opensrf/string_array.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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 -- 2.11.0