From 28128c1d88f47f4036bc95d36ea4c9f121be0678 Mon Sep 17 00:00:00 2001 From: scottmk Date: Thu, 8 Jan 2009 19:01:30 +0000 Subject: [PATCH] Move nested headers into complation guard; prepare for #inclusion in C++ git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1597 9efc2488-bf62-4759-914b-345cdb29e865 --- include/opensrf/transport_session.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/include/opensrf/transport_session.h b/include/opensrf/transport_session.h index 73060c4..d7b4447 100644 --- a/include/opensrf/transport_session.h +++ b/include/opensrf/transport_session.h @@ -3,6 +3,9 @@ // a SAX push parser as it arrives. When key Jabber documetn elements are met, // logic ensues. // --------------------------------------------------------------------------------- +#ifndef TRANSPORT_SESSION_H +#define TRANSPORT_SESSION_H + #include #include @@ -20,8 +23,9 @@ #include #include -#ifndef TRANSPORT_SESSION_H -#define TRANSPORT_SESSION_H +#ifdef __cplusplus +extern "C" { +#endif #define CONNECTING_1 1 /* just starting the connection to Jabber */ #define CONNECTING_2 2 /* First packet sent and packet received from server */ @@ -214,4 +218,8 @@ int session_connect( transport_session* session, int session_disconnect( transport_session* session ); +#ifdef __cplusplus +} +#endif + #endif -- 2.43.2