Move nested headers into complation guard;
authorscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 8 Jan 2009 18:48:29 +0000 (18:48 +0000)
committerscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 8 Jan 2009 18:48:29 +0000 (18:48 +0000)
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

index 8508326..5c1a4d6 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef TRANSPORT_MESSAGE_H
+#define TRANSPORT_MESSAGE_H
+
 #include <string.h>
 #include <libxml/globals.h>
 #include <libxml/xmlerror.h>
 #include <string.h>
 #include <libxml/globals.h>
 #include <libxml/xmlerror.h>
 #include <opensrf/xml_utils.h>
 #include <opensrf/log.h>
 
 #include <opensrf/xml_utils.h>
 #include <opensrf/log.h>
 
-#ifndef TRANSPORT_MESSAGE_H
-#define TRANSPORT_MESSAGE_H
-
-
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 // ---------------------------------------------------------------------------------
 // Jabber message object.
 
 // ---------------------------------------------------------------------------------
 // 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);
 
 
 void set_msg_error( transport_message*, const char* error_type, int error_code);
 
+#ifdef __cplusplus
+}
+#endif
 
 #endif
 
 #endif