From a11fe94f2cb648fe566aa66251c606b60e7f20b6 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sun, 25 Sep 2011 10:30:26 +0100 Subject: [PATCH] correct cpp extern only being on win32 Signed-off-by: Andy Green --- lib/libwebsockets.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/libwebsockets.h b/lib/libwebsockets.h index 2ab918d..4e06fc4 100644 --- a/lib/libwebsockets.h +++ b/lib/libwebsockets.h @@ -22,6 +22,10 @@ #ifndef __LIBWEBSOCKET_H__ #define __LIBWEBSOCKET_H__ +#ifdef __cplusplus +extern "C" { +#endif + #ifdef WIN32 #ifndef WIN32_LEAN_AND_MEAN @@ -31,10 +35,6 @@ #include #include "websock-w32.h" -#ifdef __cplusplus -extern "C" { -#endif - #include "gettimeofday.h" #else @@ -683,9 +683,8 @@ lws_b64_decode_string(const char *in, char *out, int out_size); extern struct libwebsocket_extension libwebsocket_internal_extensions[]; -#ifdef WIN32 #ifdef __cplusplus } #endif -#endif + #endif -- 2.7.4