[Opensrf-commits] r1596 - trunk/include/opensrf

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Jan 8 13:48:32 EST 2009


Author: scottmk
Date: 2009-01-08 13:48:29 -0500 (Thu, 08 Jan 2009)
New Revision: 1596

Modified:
   trunk/include/opensrf/transport_message.h
Log:
Move nested headers into complation guard;
prepare for #inclusion in C++


Modified: trunk/include/opensrf/transport_message.h
===================================================================
--- trunk/include/opensrf/transport_message.h	2009-01-08 18:29:33 UTC (rev 1595)
+++ trunk/include/opensrf/transport_message.h	2009-01-08 18:48:29 UTC (rev 1596)
@@ -1,3 +1,6 @@
+#ifndef TRANSPORT_MESSAGE_H
+#define TRANSPORT_MESSAGE_H
+
 #include <string.h>
 #include <libxml/globals.h>
 #include <libxml/xmlerror.h>
@@ -10,11 +13,10 @@
 #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.
 // ---------------------------------------------------------------------------------
@@ -85,5 +87,8 @@
 
 void set_msg_error( transport_message*, const char* error_type, int error_code);
 
+#ifdef __cplusplus
+}
+#endif
 
 #endif



More information about the opensrf-commits mailing list