Move nested headers into complation guard;
authorscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 8 Jan 2009 18:16:32 +0000 (18:16 +0000)
committerscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 8 Jan 2009 18:16:32 +0000 (18:16 +0000)
prepare for #inclusion in C++

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1593 9efc2488-bf62-4759-914b-345cdb29e865

include/opensrf/osrf_message.h

index 66cbc25..d3e0b15 100644 (file)
@@ -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>
 #include <libxml/xpathInternals.h>
 #include <libxml/tree.h>
 
-
-
-#ifndef osrf_message_h
-#define osrf_message_h
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 #define OSRF_XML_NAMESPACE "http://open-ils.org/xml/namespaces/oils_v1"
 
@@ -136,5 +138,8 @@ jsonObject* osrfMessageToJSON( const osrfMessage* msg );
 
 char* osrfMessageSerializeBatch( osrfMessage* msgs [], int count );
 
+#ifdef __cplusplus
+}
+#endif
 
 #endif