Remove socklen_t definition.
Tthe problem is that winsock2.h defines socklen_t as a typedef, not as a define, so depending on the order of includes you can get errors in ws2tcpip.h with msvc.
Этот коммит содержится в:
родитель
984fb41b98
Коммит
ffc9806e6d
@ -63,9 +63,6 @@
|
|||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#ifndef socklen_t
|
|
||||||
#define socklen_t int
|
|
||||||
#endif
|
|
||||||
#else /* _WIN32 */
|
#else /* _WIN32 */
|
||||||
#include <sys/select.h> /* for fd_set * */
|
#include <sys/select.h> /* for fd_set * */
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user