From: scottmk Date: Thu, 8 Jan 2009 18:16:32 +0000 (+0000) Subject: Move nested headers into complation guard; X-Git-Tag: osrf_rel_2_0_1~451 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4ebfa1efb9a19277de6f6684193c6648d3203e27;p=OpenSRF.git Move nested headers into complation guard; prepare for #inclusion in C++ git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1593 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/include/opensrf/osrf_message.h b/include/opensrf/osrf_message.h index 66cbc25..d3e0b15 100644 --- a/include/opensrf/osrf_message.h +++ b/include/opensrf/osrf_message.h @@ -1,3 +1,6 @@ +#ifndef osrf_message_h +#define osrf_message_h + #include #include #include @@ -11,10 +14,9 @@ #include #include - - -#ifndef osrf_message_h -#define osrf_message_h +#ifdef __cplusplus +extern "C" { +#endif #define OSRF_XML_NAMESPACE "http://open-ils.org/xml/namespaces/oils_v1" @@ -136,5 +138,8 @@ jsonObject* osrfMessageToJSON( const osrfMessage* msg ); char* osrfMessageSerializeBatch( osrfMessage* msgs [], int count ); +#ifdef __cplusplus +} +#endif #endif