diff options
| author | Meco Man <[email protected]> | 2021-12-29 13:59:46 -0500 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2022-01-05 23:12:41 +0800 |
| commit | e6fd3ffcd9b5e8d4348db66bd42d9e0ec890533b (patch) | |
| tree | 89c8ae1dfcb4b2cb5bebc0912bbeac8ef6b9ab46 /components/libc/compilers/common | |
| parent | e1a17f0bbc2562e1d3676fb25232250b6ef9183e (diff) | |
[libc]修理一些细节问题
Diffstat (limited to 'components/libc/compilers/common')
| -rw-r--r-- | components/libc/compilers/common/compiler_private.h | 2 | ||||
| -rw-r--r-- | components/libc/compilers/common/time.c | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/components/libc/compilers/common/compiler_private.h b/components/libc/compilers/common/compiler_private.h index 2fd9c51f65..96a49efc7a 100644 --- a/components/libc/compilers/common/compiler_private.h +++ b/components/libc/compilers/common/compiler_private.h @@ -10,8 +10,6 @@ #ifndef __COMPILER_PRIVATE_H__ #define __COMPILER_PRIVATE_H__ -#include <rtconfig.h> - #define _WARNING_WITHOUT_FS "Please enable RT_USING_POSIX_FS" #define _WARNING_WITHOUT_STDIO "Please enable RT_USING_POSIX_FS and RT_USING_POSIX_STDIO" diff --git a/components/libc/compilers/common/time.c b/components/libc/compilers/common/time.c index 8890a3e830..256268a3fc 100644 --- a/components/libc/compilers/common/time.c +++ b/components/libc/compilers/common/time.c @@ -56,8 +56,8 @@ static const short __spm[13] = (31 + 28 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30 + 31), }; -ALIGN(4) static const char days[] = "Sun Mon Tue Wed Thu Fri Sat "; -ALIGN(4) static const char months[] = "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec "; +ALIGN(4) static const char *days = "Sun Mon Tue Wed Thu Fri Sat "; +ALIGN(4) static const char *months = "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec "; static int __isleap(int year) { |
