From 5eaab059d0ce6d2959f336f891d91c6ead6852e7 Mon Sep 17 00:00:00 2001 From: scottmk Date: Thu, 8 Jan 2009 18:23:42 +0000 Subject: [PATCH] Move nested headers into complation guard; prepare for #inclusion in C++ git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1594 9efc2488-bf62-4759-914b-345cdb29e865 --- include/opensrf/socket_bundle.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/include/opensrf/socket_bundle.h b/include/opensrf/socket_bundle.h index bec656a..ea972a5 100644 --- a/include/opensrf/socket_bundle.h +++ b/include/opensrf/socket_bundle.h @@ -1,3 +1,6 @@ +#ifndef SOCKET_BUNDLE_H +#define SOCKET_BUNDLE_H + #include #include @@ -23,9 +26,9 @@ #include -#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 @@ void _socket_print_list(socket_manager* mgr); int socket_connected(int sock_fd); +#ifdef __cplusplus +} +#endif + #endif -- 2.11.0