mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
windows: LWS_EXTERN must be 'extern' if not building DLL
if it is simply empty, header declarations of externally defined arrays will fail.
This commit is contained in:
parent
df2c2fa291
commit
afb7b30f0d
2 changed files with 1 additions and 3 deletions
|
@ -100,8 +100,6 @@ typedef unsigned long long lws_intptr_t;
|
|||
#else
|
||||
#define LWS_EXTERN extern __declspec(dllimport)
|
||||
#endif
|
||||
#else
|
||||
#define LWS_EXTERN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -133,7 +133,7 @@ struct lws_fd_hashtable {
|
|||
#define LWS_EXTERN extern __declspec(dllimport)
|
||||
#endif
|
||||
#else
|
||||
#define LWS_EXTERN
|
||||
#define LWS_EXTERN extern
|
||||
#endif
|
||||
|
||||
typedef SOCKET lws_sockfd_type;
|
||||
|
|
Loading…
Add table
Reference in a new issue