static int curs_y = -1;
static boolean modifiers_available =
-#ifndef PDCURSES
- FALSE;
-#else
+#if defined(PDCURSES) && defined(PDC_KEY_MODIFIER_ALT)
TRUE;
+#else
+ FALSE;
+#endif
+#if defined(PDCURSES) && defined(PDC_KEY_MODIFIER_ALT)
static unsigned long last_getch_modifiers = 0L;
#endif
static void
update_modifiers(void)
{
-#ifdef PDCURSES
+#if defined(PDCURSES) && defined(PDC_KEY_MODIFIER_ALT)
last_getch_modifiers = PDC_get_key_modifiers();
#endif
}