From: scottmk Date: Thu, 8 Jan 2009 19:01:30 +0000 (+0000) Subject: Move nested headers into complation guard; X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=28128c1d88f47f4036bc95d36ea4c9f121be0678;p=opensrf%2Fbjwebb.git 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 --- 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