From 8556b3ce9f50c9b2ce60183db0831d098dec6a6d Mon Sep 17 00:00:00 2001 From: scottmk Date: Thu, 8 Jan 2009 18:48:29 +0000 Subject: [PATCH] Move nested headers into complation guard; prepare for #inclusion in C++ git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1596 9efc2488-bf62-4759-914b-345cdb29e865 --- include/opensrf/transport_message.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/include/opensrf/transport_message.h b/include/opensrf/transport_message.h index 8508326..5c1a4d6 100644 --- a/include/opensrf/transport_message.h +++ b/include/opensrf/transport_message.h @@ -1,3 +1,6 @@ +#ifndef TRANSPORT_MESSAGE_H +#define TRANSPORT_MESSAGE_H + #include #include #include @@ -10,10 +13,9 @@ #include #include -#ifndef TRANSPORT_MESSAGE_H -#define TRANSPORT_MESSAGE_H - - +#ifdef __cplusplus +extern "C" { +#endif // --------------------------------------------------------------------------------- // Jabber message object. @@ -85,5 +87,8 @@ void jid_get_domain( const char* jid, char buf[], int size ); void set_msg_error( transport_message*, const char* error_type, int error_code); +#ifdef __cplusplus +} +#endif #endif -- 2.43.2