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

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Jan 8 00:38:33 EST 2009


Author: scottmk
Date: 2009-01-08 00:38:30 -0500 (Thu, 08 Jan 2009)
New Revision: 1579

Modified:
   trunk/include/opensrf/utils.h
Log:
Prepare for #inclusion in C++ programs


Modified: trunk/include/opensrf/utils.h
===================================================================
--- trunk/include/opensrf/utils.h	2009-01-07 18:28:53 UTC (rev 1578)
+++ trunk/include/opensrf/utils.h	2009-01-08 05:38:30 UTC (rev 1579)
@@ -29,6 +29,10 @@
 #include <string.h>
 //#include <sys/timeb.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include "md5.h"
 
 #define OSRF_MALLOC(ptr, size) \
@@ -277,4 +281,8 @@
   */
 int osrfUtilsCheckFileDescriptor( int fd );
 
+#ifdef __cplusplus
+}
 #endif
+
+#endif



More information about the opensrf-commits mailing list