[Opensrf-commits] r1592 - trunk/include/opensrf

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Jan 8 12:44:07 EST 2009


Author: scottmk
Date: 2009-01-08 12:44:05 -0500 (Thu, 08 Jan 2009)
New Revision: 1592

Modified:
   trunk/include/opensrf/log.h
Log:
Move nested headers into complation guard;
prepare for #inclusion in C++


Modified: trunk/include/opensrf/log.h
===================================================================
--- trunk/include/opensrf/log.h	2009-01-08 17:27:49 UTC (rev 1591)
+++ trunk/include/opensrf/log.h	2009-01-08 17:44:05 UTC (rev 1592)
@@ -1,3 +1,6 @@
+#ifndef OSRF_LOG_INCLUDED
+#define OSRF_LOG_INCLUDED
+
 #include <opensrf/utils.h>
 
 #include <syslog.h>
@@ -5,8 +8,9 @@
 #include <time.h>
 #include <errno.h>
 
-#ifndef OSRF_LOG_INCLUDED
-#define OSRF_LOG_INCLUDED
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 /* log levels */
 #define OSRF_LOG_ERROR 1
@@ -92,4 +96,8 @@
  */
 int osrfLogFacilityToInt( char* facility );
 
+#ifdef __cplusplus
+}
 #endif
+
+#endif



More information about the opensrf-commits mailing list