diff --git a/tests/manual/gdbdebugger/simple/app.cpp b/tests/manual/gdbdebugger/simple/app.cpp
index 434aa58df9a8c87f65071310acd66b7fe867f223..067bb7d8980a453b4d4ab746a974ee3660c9fa29 100644
--- a/tests/manual/gdbdebugger/simple/app.cpp
+++ b/tests/manual/gdbdebugger/simple/app.cpp
@@ -73,6 +73,8 @@
 
 #ifdef Q_OS_WIN
 #include <windows.h>
+#undef min
+#undef max
 #endif
 
 Q_DECLARE_METATYPE(QHostAddress)