From 452c77fa4d4156f601e4ac73267e6620cb7f83a7 Mon Sep 17 00:00:00 2001 From: scottmk Date: Thu, 8 Jan 2009 17:27:49 +0000 Subject: [PATCH] Move nested headers into complation guard; prepare for #inclusion in C++ git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1591 9efc2488-bf62-4759-914b-345cdb29e865 --- src/gateway/apachetools.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/gateway/apachetools.h b/src/gateway/apachetools.h index 4f951f8..ac85bb2 100644 --- a/src/gateway/apachetools.h +++ b/src/gateway/apachetools.h @@ -1,3 +1,6 @@ +#ifndef APACHE_TOOLS_H +#define APACHE_TOOLS_H + #include "httpd.h" #include "http_config.h" #include "http_core.h" @@ -12,8 +15,9 @@ #include "opensrf/utils.h" #include "opensrf/log.h" -#ifndef APACHE_TOOLS_H -#define APACHE_TOOLS_H +#ifdef __cplusplus +extern "C" { +#endif #define APACHE_TOOLS_MAX_POST_SIZE 10485760 /* 10 MB */ @@ -53,5 +57,8 @@ int apacheError( char* msg, ... ); apr_table_t* apacheParseCookies(request_rec *r); */ +#ifdef __cplusplus +} +#endif #endif -- 2.43.2