From b793b6427a9093663a89cbca786c52d17c077266 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Sun, 15 May 2022 14:52:00 -0400 Subject: [sal] add draft for docking winsock --- components/libc/compilers/common/sys/time.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components/libc') 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 -- cgit v1.3.1