diff options
| author | Meco Man <[email protected]> | 2021-05-02 09:37:22 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-05-02 09:38:41 +0800 |
| commit | 1a55702ccb3f18f354c6f541d12e7a2eaa204569 (patch) | |
| tree | a21ccd4d782f792a10a104be31602cde1fb43aa7 /components/libc/compilers/common | |
| parent | 3f74758f3189e3d126454a6e06d1fb818747a090 (diff) | |
修复DST_NONE 等宏定义位置放错导致报错的问题
Diffstat (limited to 'components/libc/compilers/common')
| -rw-r--r-- | components/libc/compilers/common/sys/time.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/components/libc/compilers/common/sys/time.h b/components/libc/compilers/common/sys/time.h index be453ba276..bb1a9c96fd 100644 --- a/components/libc/compilers/common/sys/time.h +++ b/components/libc/compilers/common/sys/time.h @@ -18,9 +18,6 @@ extern "C" { #endif -#ifndef _TIMEVAL_DEFINED -#define _TIMEVAL_DEFINED - #define DST_NONE 0 /* not on dst */ #define DST_USA 1 /* USA style dst */ #define DST_AUST 2 /* Australian style dst */ @@ -33,6 +30,8 @@ extern "C" { #define DST_TUR 9 /* Turkey */ #define DST_AUSTALT 10 /* Australian style with shift in 1986 */ +#ifndef _TIMEVAL_DEFINED +#define _TIMEVAL_DEFINED /* * Structure returned by gettimeofday(2) system call, * and used in other calls. |
