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

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Jan 8 09:50:20 EST 2009


Author: scottmk
Date: 2009-01-08 09:50:18 -0500 (Thu, 08 Jan 2009)
New Revision: 1580

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


Modified: trunk/include/opensrf/osrf_application.h
===================================================================
--- trunk/include/opensrf/osrf_application.h	2009-01-08 05:38:30 UTC (rev 1579)
+++ trunk/include/opensrf/osrf_application.h	2009-01-08 14:50:18 UTC (rev 1580)
@@ -1,3 +1,6 @@
+#ifndef OSRF_APPLICATION_H
+#define OSRF_APPLICATION_H
+
 #include <opensrf/utils.h>
 #include <opensrf/log.h>
 #include <opensrf/osrf_app_session.h>
@@ -7,6 +10,9 @@
 #include <stdio.h>
 #include <dlfcn.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 /**
   All OpenSRF methods take the signature
@@ -181,4 +187,8 @@
 int osrfAppRunChildInit(const char* appname);
 void osrfAppRunExitCode();
 
+#ifdef __cplusplus
+}
+#endif
 
+#endif



More information about the opensrf-commits mailing list