From 4ebfa1efb9a19277de6f6684193c6648d3203e27 Mon Sep 17 00:00:00 2001 From: scottmk Date: Thu, 8 Jan 2009 18:16:32 +0000 Subject: [PATCH] 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 --- include/opensrf/osrf_message.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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 -- 2.11.0