From: scottmk Date: Thu, 8 Jan 2009 18:23:42 +0000 (+0000) Subject: Move nested headers into complation guard; X-Git-Tag: osrf_rel_2_0_1~450 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5eaab059d0ce6d2959f336f891d91c6ead6852e7;p=OpenSRF.git 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 --- 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