From: nhmall Date: Tue, 1 Nov 2022 16:46:10 +0000 (-0400) Subject: Qt: remove obsolete #undef lines X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5192191e5d52292d89df2be6fc280ac20a5ee306;p=nethack Qt: remove obsolete #undef lines --- diff --git a/win/Qt/qt_pre.h b/win/Qt/qt_pre.h index db3830016..d3635e19b 100644 --- a/win/Qt/qt_pre.h +++ b/win/Qt/qt_pre.h @@ -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__