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

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Jan 8 10:28:34 EST 2009


Author: scottmk
Date: 2009-01-08 10:28:32 -0500 (Thu, 08 Jan 2009)
New Revision: 1582

Modified:
   trunk/include/opensrf/osrf_transgroup.h
Log:
Add compilation guard; prepare for #inclusion in C++


Modified: trunk/include/opensrf/osrf_transgroup.h
===================================================================
--- trunk/include/opensrf/osrf_transgroup.h	2009-01-08 15:04:58 UTC (rev 1581)
+++ trunk/include/opensrf/osrf_transgroup.h	2009-01-08 15:28:32 UTC (rev 1582)
@@ -1,3 +1,6 @@
+#ifndef OSRF_TRANSGROUP_H
+#define OSRF_TRANSGROUP_H
+
 #include <opensrf/transport_client.h>
 #include <opensrf/transport_message.h>
 #include <opensrf/osrf_list.h>
@@ -6,6 +9,10 @@
 #include <opensrf/utils.h>
 #include <time.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /**
   Maintains a set of transport clients 
   */
@@ -119,4 +126,9 @@
   */
 osrfTransportGroupNode* __osrfTransportGroupFindNode( osrfTransportGroup* grp, char* domain );
 
+#ifdef __cplusplus
+}
+#endif
 
+#endif
+



More information about the opensrf-commits mailing list