mirror of https://github.com/MidnightCommander/mc
Ticket #2228: init_panelize(): undeclared 'input_colors'.
If MC is built with --disable-nls option, the input_colors constant is undeclared in init_panelize() function. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
159927cb2c
commit
39b45282e6
|
@ -132,13 +132,6 @@ panelize_callback (Dlg_head * h, Widget * sender, dlg_msg_t msg, int parm, void
|
|||
static void
|
||||
init_panelize (void)
|
||||
{
|
||||
int i, panelize_cols = COLS - 6;
|
||||
struct panelize *current = panelize;
|
||||
|
||||
#ifdef ENABLE_NLS
|
||||
static int i18n_flag = 0;
|
||||
static int maxlen = 0;
|
||||
|
||||
const int input_colors[3] =
|
||||
{
|
||||
INPUT_COLOR,
|
||||
|
@ -146,6 +139,13 @@ init_panelize (void)
|
|||
INPUT_MARK_COLOR
|
||||
};
|
||||
|
||||
int i, panelize_cols = COLS - 6;
|
||||
struct panelize *current = panelize;
|
||||
|
||||
#ifdef ENABLE_NLS
|
||||
static int i18n_flag = 0;
|
||||
static int maxlen = 0;
|
||||
|
||||
if (!i18n_flag)
|
||||
{
|
||||
i = sizeof (panelize_but) / sizeof (panelize_but[0]);
|
||||
|
|
Loading…
Reference in New Issue