From a2de2282dd2af9b2aa71c197c839be9dead2da81 Mon Sep 17 00:00:00 2001 From: scottmk Date: Thu, 8 Jan 2009 17:44:05 +0000 Subject: [PATCH] Move nested headers into complation guard; prepare for #inclusion in C++ git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1592 9efc2488-bf62-4759-914b-345cdb29e865 --- include/opensrf/log.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/include/opensrf/log.h b/include/opensrf/log.h index 11c273e..a50e21e 100644 --- a/include/opensrf/log.h +++ b/include/opensrf/log.h @@ -1,3 +1,6 @@ +#ifndef OSRF_LOG_INCLUDED +#define OSRF_LOG_INCLUDED + #include #include @@ -5,8 +8,9 @@ #include #include -#ifndef OSRF_LOG_INCLUDED -#define OSRF_LOG_INCLUDED +#ifdef __cplusplus +extern "C" { +#endif /* log levels */ #define OSRF_LOG_ERROR 1 @@ -92,4 +96,8 @@ void osrfLogSetActivityEnabled( int enabled ); */ int osrfLogFacilityToInt( char* facility ); +#ifdef __cplusplus +} +#endif + #endif -- 2.11.0