1
0
Fork 0
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:
Kristján Valur Jónsson 2019-10-21 23:27:32 +00:00 committed by Andy Green
parent df2c2fa291
commit afb7b30f0d
2 changed files with 1 additions and 3 deletions

View file

@ -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

View file

@ -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;