summaryrefslogtreecommitdiff
path: root/components/libc/compilers
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2022-05-15 14:52:00 -0400
committerguo <[email protected]>2022-05-16 10:02:22 +0800
commitb793b6427a9093663a89cbca786c52d17c077266 (patch)
treedb745068a760add9916a0f3a9552cbecc96fdf43 /components/libc/compilers
parent19abf927d210338ea830908af7de37bb23d12682 (diff)
[sal] add draft for docking winsock
Diffstat (limited to 'components/libc/compilers')
-rw-r--r--components/libc/compilers/common/sys/time.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/libc/compilers/common/sys/time.h b/components/libc/compilers/common/sys/time.h
index b7b193d25a..8a4dbb68f3 100644
--- a/components/libc/compilers/common/sys/time.h
+++ b/components/libc/compilers/common/sys/time.h
@@ -43,14 +43,14 @@ struct timezone
int tz_dsttime; /* type of dst correction */
};
-#if !defined(_TIMEVAL_DEFINED)
+#ifndef _TIMEVAL_DEFINED
#define _TIMEVAL_DEFINED
struct timeval
{
time_t tv_sec; /* seconds */
suseconds_t tv_usec; /* and microseconds */
};
-#endif /* !defined(_TIMEVAL_DEFINED) && !defined(_WIN32) */
+#endif /* _TIMEVAL_DEFINED */
#if defined(__ARMCC_VERSION) || defined(_WIN32) || (defined(__ICCARM__) && (__VER__ < 8010001))
struct timespec