+#ifndef TRANSPORT_MESSAGE_H
+#define TRANSPORT_MESSAGE_H
+
#include <string.h>
#include <libxml/globals.h>
#include <libxml/xmlerror.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.
void set_msg_error( transport_message*, const char* error_type, int error_code);
+#ifdef __cplusplus
+}
+#endif
#endif