diff options
| author | Meco Man <[email protected]> | 2021-05-01 06:03:46 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-05-01 06:03:46 +0800 |
| commit | 0aa3b80fc3509a2377d727e76fd9393f4b4962d8 (patch) | |
| tree | b9cb3d15808f998754f5d105a65d65bf81e1f738 /components/libc/compilers | |
| parent | a7a3ca9f0290131842f1a40bb8dca1a9490e4d27 (diff) | |
在time.c中增加RT_LIBC_FIXED_TIMEZONE默认值,防止有些工程没有配置RT_LIBC_FIXED_TIMEZONE
Diffstat (limited to 'components/libc/compilers')
| -rw-r--r-- | components/libc/compilers/common/time.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/libc/compilers/common/time.c b/components/libc/compilers/common/time.c index 8dda257937..3e23fc8242 100644 --- a/components/libc/compilers/common/time.c +++ b/components/libc/compilers/common/time.c @@ -30,6 +30,10 @@ #define DBG_LVL DBG_INFO #include <rtdbg.h> +#ifndef RT_LIBC_FIXED_TIMEZONE +#define RT_LIBC_FIXED_TIMEZONE 8 +#endif + /* seconds per day */ #define SPD 24*60*60 |
