Trac 29: win32 fix LWS_VISIBLE issue
authorAndy Green <andy.green@linaro.org>
Thu, 25 Apr 2013 23:37:16 +0000 (07:37 +0800)
committerAndy Green <andy.green@linaro.org>
Thu, 25 Apr 2013 23:37:16 +0000 (07:37 +0800)
Reported-by: davetaflin
Signed-off-by: Andy Green <andy.green@linaro.org>
lib/libwebsockets.h

index f7da4d0..65bae14 100644 (file)
@@ -44,14 +44,16 @@ extern "C" {
 
 typedef int ssize_t;
 
+#define LWS_VISIBLE
+
 #ifdef LWS_DLL
 #ifdef LWS_INTERNAL
-#define LWS_VISIBLE
 #define LWS_EXTERN extern __declspec(dllexport)
 #else
-#define LWS_VISIBLE
 #define LWS_EXTERN extern __declspec(dllimport)
 #endif
+#else
+#define LWS_EXTERN
 #endif
 
 #else // NOT WIN32