From: scottmk Date: Thu, 8 Jan 2009 18:48:29 +0000 (+0000) Subject: Move nested headers into complation guard; X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8556b3ce9f50c9b2ce60183db0831d098dec6a6d;p=working%2FOpenSRF.git 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 --- 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