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:
Andrew Borodin 2010-05-30 17:53:54 +04:00
parent 159927cb2c
commit 39b45282e6
1 changed files with 7 additions and 7 deletions

View File

@ -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]);