From c721355f9382aabd275458811f81f9be2aef62a6 Mon Sep 17 00:00:00 2001 From: scottmk Date: Thu, 8 Jan 2009 14:50:18 +0000 Subject: [PATCH 1/1] Add compilation guard; prepare for #inclusion in C++ git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1580 9efc2488-bf62-4759-914b-345cdb29e865 --- include/opensrf/osrf_application.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/opensrf/osrf_application.h b/include/opensrf/osrf_application.h index 6cc5ab8..8b1e247 100644 --- a/include/opensrf/osrf_application.h +++ b/include/opensrf/osrf_application.h @@ -1,3 +1,6 @@ +#ifndef OSRF_APPLICATION_H +#define OSRF_APPLICATION_H + #include #include #include @@ -7,6 +10,9 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif /** All OpenSRF methods take the signature @@ -181,4 +187,8 @@ int osrfAppRespondComplete( osrfMethodContext* context, const jsonObject* data ) int osrfAppRunChildInit(const char* appname); void osrfAppRunExitCode(); +#ifdef __cplusplus +} +#endif +#endif -- 2.43.2