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

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Jan 8 13:16:35 EST 2009


Author: scottmk
Date: 2009-01-08 13:16:32 -0500 (Thu, 08 Jan 2009)
New Revision: 1593

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


Modified: trunk/include/opensrf/osrf_message.h
===================================================================
--- trunk/include/opensrf/osrf_message.h	2009-01-08 17:44:05 UTC (rev 1592)
+++ trunk/include/opensrf/osrf_message.h	2009-01-08 18:16:32 UTC (rev 1593)
@@ -1,3 +1,6 @@
+#ifndef osrf_message_h
+#define osrf_message_h
+
 #include <opensrf/string_array.h>
 #include <opensrf/utils.h>
 #include <opensrf/log.h>
@@ -11,11 +14,10 @@
 #include <libxml/xpathInternals.h>
 #include <libxml/tree.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 
-
-#ifndef osrf_message_h
-#define osrf_message_h
-
 #define OSRF_XML_NAMESPACE "http://open-ils.org/xml/namespaces/oils_v1"
 
 #define OSRF_STATUS_CONTINUE						100
@@ -136,5 +138,8 @@
 
 char* osrfMessageSerializeBatch( osrfMessage* msgs [], int count );
 
+#ifdef __cplusplus
+}
+#endif
 
 #endif



More information about the opensrf-commits mailing list