From 5192191e5d52292d89df2be6fc280ac20a5ee306 Mon Sep 17 00:00:00 2001 From: nhmall Date: Tue, 1 Nov 2022 12:46:10 -0400 Subject: [PATCH] Qt: remove obsolete #undef lines --- win/Qt/qt_pre.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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__