libc: Guard gettext function with CONFIG_LIBC_LOCALE_GETTEXT in libc.csv

since Makefile and source files doesn't use CONFIG_LIBC_LOCALE at all

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2023-08-22 12:11:47 +08:00
committed by archer
parent 5597b8a9e2
commit fdf7055d7b
+4 -4
View File
@@ -26,8 +26,8 @@
"b16sin","fixedmath.h","","b16_t","b16_t"
"b16sqr","fixedmath.h","!defined(CONFIG_HAVE_LONG_LONG)","b16_t","b16_t"
"basename","libgen.h","","FAR char *","FAR char *"
"bind_textdomain_codeset","libintl.h","defined(CONFIG_LIBC_LOCALE)","FAR char *","FAR const char *","FAR const char *"
"bindtextdomain","libintl.h","defined(CONFIG_LIBC_LOCALE)","FAR char *","FAR const char *","FAR const char *"
"bind_textdomain_codeset","libintl.h","defined(CONFIG_LIBC_LOCALE_GETTEXT)","FAR char *","FAR const char *","FAR const char *"
"bindtextdomain","libintl.h","defined(CONFIG_LIBC_LOCALE_GETTEXT)","FAR char *","FAR const char *","FAR const char *"
"btowc","wchar.h","","wint_t","int"
"calloc","stdlib.h","","FAR void *","size_t","size_t"
"cfgetspeed","termios.h","","speed_t","FAR const struct termios *"
@@ -40,7 +40,7 @@
"crc32part","nuttx/crc32.h","","uint32_t","FAR const uint8_t *","size_t","uint32_t"
"ctime","time.h","","char *","const time_t *"
"daemon","unistd.h","","int","int","int"
"dgettext","libintl.h","defined(CONFIG_LIBC_LOCALE)","FAR char *","FAR const char *","FAR const char *"
"dgettext","libintl.h","defined(CONFIG_LIBC_LOCALE_GETTEXT)","FAR char *","FAR const char *","FAR const char *"
"dirname","libgen.h","","FAR char *","FAR char *"
"dlclose","dlfcn.h","defined(CONFIG_LIBC_DLFCN)","int","FAR void *"
"dlerror","dlfcn.h","defined(CONFIG_LIBC_DLFCN)","FAR char *"
@@ -100,7 +100,7 @@
"getpwnam_r","pwd.h","","int","FAR const char *","FAR struct passwd *","FAR char *","size_t","FAR struct passwd **"
"getpwuid_r","pwd.h","","int","uid_t","FAR struct passwd *","FAR char *","size_t","FAR struct passwd **"
"gets","stdio.h","defined(CONFIG_FILE_STREAM)","FAR char *","FAR char *"
"gettext","libintl.h","defined(CONFIG_LIBC_LOCALE)","FAR char *","FAR const char *"
"gettext","libintl.h","defined(CONFIG_LIBC_LOCALE_GETTEXT)","FAR char *","FAR const char *"
"gettimeofday","sys/time.h","","int","FAR struct timeval *","FAR struct timezone *"
"gmtime","time.h","","FAR struct tm *","FAR const time_t *"
"gmtime_r","time.h","","FAR struct tm *","FAR const time_t *","FAR struct tm *"
1 __assert assert.h void FAR const char * int FAR const char *
26 b16sin fixedmath.h b16_t b16_t
27 b16sqr fixedmath.h !defined(CONFIG_HAVE_LONG_LONG) b16_t b16_t
28 basename libgen.h FAR char * FAR char *
29 bind_textdomain_codeset libintl.h defined(CONFIG_LIBC_LOCALE) defined(CONFIG_LIBC_LOCALE_GETTEXT) FAR char * FAR const char * FAR const char *
30 bindtextdomain libintl.h defined(CONFIG_LIBC_LOCALE) defined(CONFIG_LIBC_LOCALE_GETTEXT) FAR char * FAR const char * FAR const char *
31 btowc wchar.h wint_t int
32 calloc stdlib.h FAR void * size_t size_t
33 cfgetspeed termios.h speed_t FAR const struct termios *
40 crc32part nuttx/crc32.h uint32_t FAR const uint8_t * size_t uint32_t
41 ctime time.h char * const time_t *
42 daemon unistd.h int int int
43 dgettext libintl.h defined(CONFIG_LIBC_LOCALE) defined(CONFIG_LIBC_LOCALE_GETTEXT) FAR char * FAR const char * FAR const char *
44 dirname libgen.h FAR char * FAR char *
45 dlclose dlfcn.h defined(CONFIG_LIBC_DLFCN) int FAR void *
46 dlerror dlfcn.h defined(CONFIG_LIBC_DLFCN) FAR char *
100 getpwnam_r pwd.h int FAR const char * FAR struct passwd * FAR char *
101 getpwuid_r pwd.h int uid_t FAR struct passwd * FAR char *
102 gets stdio.h defined(CONFIG_FILE_STREAM) FAR char * FAR char *
103 gettext libintl.h defined(CONFIG_LIBC_LOCALE) defined(CONFIG_LIBC_LOCALE_GETTEXT) FAR char * FAR const char *
104 gettimeofday sys/time.h int FAR struct timeval * FAR struct timezone *
105 gmtime time.h FAR struct tm * FAR const time_t *
106 gmtime_r time.h FAR struct tm * FAR const time_t * FAR struct tm *