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

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Jan 8 13:23:45 EST 2009


Author: scottmk
Date: 2009-01-08 13:23:42 -0500 (Thu, 08 Jan 2009)
New Revision: 1594

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


Modified: trunk/include/opensrf/socket_bundle.h
===================================================================
--- trunk/include/opensrf/socket_bundle.h	2009-01-08 18:16:32 UTC (rev 1593)
+++ trunk/include/opensrf/socket_bundle.h	2009-01-08 18:23:42 UTC (rev 1594)
@@ -1,3 +1,6 @@
+#ifndef SOCKET_BUNDLE_H
+#define SOCKET_BUNDLE_H
+
 #include <opensrf/utils.h>
 #include <opensrf/log.h>
 
@@ -23,10 +26,10 @@
 
 #include <signal.h>
 
-#ifndef SOCKET_BUNDLE_H
-#define SOCKET_BUNDLE_H
+#ifdef __cplusplus
+extern "C" {
+#endif
 
-
 #define SERVER_SOCKET			1
 #define CLIENT_SOCKET			2
 
@@ -108,4 +111,8 @@
 
 int socket_connected(int sock_fd);
 
+#ifdef __cplusplus
+}
 #endif
+
+#endif



More information about the opensrf-commits mailing list