diff --git a/tests/manual/gdbdebugger/simple/app.cpp b/tests/manual/gdbdebugger/simple/app.cpp index 9bf48786c15..7cc43494dd4 100644 --- a/tests/manual/gdbdebugger/simple/app.cpp +++ b/tests/manual/gdbdebugger/simple/app.cpp @@ -71,9 +71,9 @@ #include #include -#define USE_GCC_EXT 1 -#if USE_GCC_EXT -#include +#if defined(__GNUC__) +# define USE_GCC_EXT 1 +# include #endif #ifdef Q_OS_WIN