net 部分兼容cl和gcc
parent
92c7cd5257
commit
a5c51b5b1a
|
@ -1,7 +1,7 @@
|
||||||
//
|
//
|
||||||
// Created by 29019 on 2020/4/18.
|
// Created by 29019 on 2020/4/18.
|
||||||
//
|
//
|
||||||
|
#define _WIN32_WINNT 0x0500
|
||||||
#ifndef GENERAL_TCPCLIENT_H
|
#ifndef GENERAL_TCPCLIENT_H
|
||||||
#define GENERAL_TCPCLIENT_H
|
#define GENERAL_TCPCLIENT_H
|
||||||
extern "C"{
|
extern "C"{
|
||||||
|
|
|
@ -343,7 +343,7 @@
|
||||||
/* #undef EVENT__HAVE_SYS_TIMERFD_H */
|
/* #undef EVENT__HAVE_SYS_TIMERFD_H */
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/time.h> header file. */
|
/* Define to 1 if you have the <sys/time.h> header file. */
|
||||||
#define EVENT__HAVE_SYS_TIME_H 1
|
//#define EVENT__HAVE_SYS_TIME_H 1
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||||
#define EVENT__HAVE_SYS_TYPES_H 1
|
#define EVENT__HAVE_SYS_TYPES_H 1
|
||||||
|
@ -541,5 +541,5 @@
|
||||||
|
|
||||||
/* Define to `int' if <sys/types.h> does not define. */
|
/* Define to `int' if <sys/types.h> does not define. */
|
||||||
/* #undef EVENT__ssize_t */
|
/* #undef EVENT__ssize_t */
|
||||||
|
#define EVENT__ssize_t int
|
||||||
#endif /* event2/event-config.h */
|
#endif /* event2/event-config.h */
|
||||||
|
|
Loading…
Reference in New Issue