projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac04911
)
Trac 29: win32 fix LWS_VISIBLE issue
author
Andy Green
<andy.green@linaro.org>
Thu, 25 Apr 2013 23:37:16 +0000
(07:37 +0800)
committer
Andy 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
patch
|
blob
|
history
diff --git
a/lib/libwebsockets.h
b/lib/libwebsockets.h
index
f7da4d0
..
65bae14
100644
(file)
--- a/
lib/libwebsockets.h
+++ b/
lib/libwebsockets.h
@@
-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