]> granicus.if.org Git - nethack/commitdiff
Qt: remove obsolete #undef lines
authornhmall <nhmall@nethack.org>
Tue, 1 Nov 2022 16:46:10 +0000 (12:46 -0400)
committernhmall <nhmall@nethack.org>
Tue, 1 Nov 2022 16:46:10 +0000 (12:46 -0400)
win/Qt/qt_pre.h

index db3830016b8491052fc1dd79149f272ea149bd6d..d3635e19beb79260502cac3b678788a8f69f1e89 100644 (file)
@@ -9,14 +9,21 @@
 #undef C            // conflicts with Qt6 header
 #undef Invisible
 #undef Warning
-#undef index
 #undef msleep
-#undef rindex
 #undef wizard
 #undef yn
 #undef min
 #undef max
 
+#ifdef NO_C99
+#ifdef NEED_INDEX
+#undef index
+#endif
+#ifdef NEED_RINDX
+#undef rindex
+#endif
+#endif
+
 #if defined(__cplusplus)
 
 #ifdef __clang__