From: scottmk Date: Thu, 8 Jan 2009 14:50:18 +0000 (+0000) Subject: Add compilation guard; prepare for #inclusion in C++ X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c721355f9382aabd275458811f81f9be2aef62a6;p=opensrf%2Fbjwebb.git Add compilation guard; prepare for #inclusion in C++ git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1580 9efc2488-bf62-4759-914b-345cdb29e865 --- 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