summaryrefslogtreecommitdiff
path: root/components/libc/compilers/common/sys/time.h
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2022-05-15 14:23:11 -0400
committerguo <[email protected]>2022-05-16 10:02:22 +0800
commit19abf927d210338ea830908af7de37bb23d12682 (patch)
treedf74c4eb1fee1cae6dfee7cd3293fc6ff633edb7 /components/libc/compilers/common/sys/time.h
parent2d418531242353fad21d6309704be5dc544c7d3e (diff)
[simulator] avoid conflicts between winsock.h and sys/time.h
Diffstat (limited to 'components/libc/compilers/common/sys/time.h')
-rw-r--r--components/libc/compilers/common/sys/time.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/components/libc/compilers/common/sys/time.h b/components/libc/compilers/common/sys/time.h
index 69d85fe094..b7b193d25a 100644
--- a/components/libc/compilers/common/sys/time.h
+++ b/components/libc/compilers/common/sys/time.h
@@ -17,8 +17,6 @@
#include <stdint.h>
#include <time.h>
#ifdef _WIN32
-#include <winsock.h> /* for struct timeval */
-#include <corecrt.h> /* for __time64_t */
typedef __time64_t time_t;
#endif /* _WIN32 */
@@ -45,7 +43,7 @@ struct timezone
int tz_dsttime; /* type of dst correction */
};
-#if !defined(_TIMEVAL_DEFINED) && !defined(_WIN32)
+#if !defined(_TIMEVAL_DEFINED)
#define _TIMEVAL_DEFINED
struct timeval
{