[Opensrf-commits] r1591 - trunk/src/gateway

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Jan 8 12:27:51 EST 2009


Author: scottmk
Date: 2009-01-08 12:27:49 -0500 (Thu, 08 Jan 2009)
New Revision: 1591

Modified:
   trunk/src/gateway/apachetools.h
Log:
Move nested headers into complation guard;
prepare for #inclusion in C++


Modified: trunk/src/gateway/apachetools.h
===================================================================
--- trunk/src/gateway/apachetools.h	2009-01-08 17:13:58 UTC (rev 1590)
+++ trunk/src/gateway/apachetools.h	2009-01-08 17:27:49 UTC (rev 1591)
@@ -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 @@
 apr_table_t* apacheParseCookies(request_rec *r);
 */
 
+#ifdef __cplusplus
+}
+#endif
 
 #endif



More information about the opensrf-commits mailing list