Browse Source

在time.c中增加RT_LIBC_FIXED_TIMEZONE默认值,防止有些工程没有配置RT_LIBC_FIXED_TIMEZONE

Meco Man 4 năm trước cách đây
mục cha
commit
0aa3b80fc3
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      components/libc/compilers/common/time.c

+ 4 - 0
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