]> granicus.if.org Git - nethack/commitdiff
follow-up bit for cursmisc.c
authornhmall <nhmall@nethack.org>
Thu, 2 Mar 2023 01:05:43 +0000 (20:05 -0500)
committernhmall <nhmall@nethack.org>
Thu, 2 Mar 2023 01:05:43 +0000 (20:05 -0500)
win/curses/cursmisc.c

index fd66cda3053c05ca8f2205c0834e2e8e561cea27..d312208cc4b635f3545503551c292d250db9081a 100644 (file)
@@ -24,11 +24,13 @@ static int curs_x = -1;
 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
 
@@ -1096,7 +1098,7 @@ parse_escape_sequence(void)
 static void
 update_modifiers(void)
 {
-#ifdef PDCURSES
+#if defined(PDCURSES) && defined(PDC_KEY_MODIFIER_ALT)
     last_getch_modifiers = PDC_get_key_modifiers();
 #endif
 }