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

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Jan 8 11:31:07 EST 2009


Author: scottmk
Date: 2009-01-08 11:31:05 -0500 (Thu, 08 Jan 2009)
New Revision: 1587

Modified:
   trunk/include/opensrf/osrf_app_session.h
Log:
Rename macro for compilation guard; prepare for #inclusion in C++


Modified: trunk/include/opensrf/osrf_app_session.h
===================================================================
--- trunk/include/opensrf/osrf_app_session.h	2009-01-08 16:18:01 UTC (rev 1586)
+++ trunk/include/opensrf/osrf_app_session.h	2009-01-08 16:31:05 UTC (rev 1587)
@@ -1,5 +1,5 @@
-#ifndef _OSRF_APP_SESSION
-#define _OSRF_APP_SESSION
+#ifndef OSRF_APP_SESSION_H
+#define OSRF_APP_SESSION_H
 
 #include <opensrf/transport_client.h>
 #include <opensrf/osrf_message.h>
@@ -11,8 +11,10 @@
 
 #include <opensrf/osrf_json.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 
-
 #define	DEF_RECV_TIMEOUT 6 /* receive timeout */
 #define	DEF_QUEUE_SIZE	
 
@@ -153,6 +155,8 @@
 
 void osrfAppSessionCleanup();
 
+#ifdef __cplusplus
+}
+#endif
 
-
 #endif



More information about the opensrf-commits mailing list