[libc] 处理在win32平台下的编译问题
This commit is contained in:
parent
09c089d511
commit
ee93914d78
|
@ -575,6 +575,10 @@ defined in armcc/errno.h
|
||||||
#ifndef EHWPOISON
|
#ifndef EHWPOISON
|
||||||
#define EHWPOISON (ERROR_BASE_NO + 133)
|
#define EHWPOISON (ERROR_BASE_NO + 133)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#elif defined(_WIN32)
|
||||||
|
#include <errno.h>
|
||||||
|
|
||||||
|
#endif /* defined(__ARMCC_VERSION) || defined(__IAR_SYSTEMS_ICC__) */
|
||||||
|
|
||||||
|
#endif /* __SYS_ERRNO_H__ */
|
||||||
|
|
|
@ -15,6 +15,9 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
#ifdef _WIN32
|
||||||
|
#include <winsock.h> /* for struct timeval */
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
Loading…
Reference in New Issue