mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-27 02:56:18 -04:00
[dos] compile also without nls
This commit is contained in:
parent
09e3f044da
commit
acdff2e7db
@ -1133,10 +1133,15 @@ get_country_language(int c)
|
||||
int idx = -1;
|
||||
#define C_EQUAL(a, b) countries[a].code == (b)
|
||||
#define C_ABOVE(a, b) countries[a].code > (b)
|
||||
|
||||
#if !defined(CONFIG_NLS) && !defined(CONFIG_GETTEXT)
|
||||
return 1;
|
||||
#else
|
||||
LINKS_BIN_SEARCH(array_elements(countries), C_EQUAL, C_ABOVE, c, idx);
|
||||
if (idx == -1)
|
||||
return 1;
|
||||
return name_to_language(countries[idx].language);
|
||||
#endif
|
||||
}
|
||||
|
||||
int os_default_language(void)
|
||||
|
Loading…
Reference in New Issue
Block a user