wince: Build fix, creating stack traces is not available on this platform
authorSérgio Martins <sergio.martins@kdab.com>
Thu, 29 Aug 2013 11:11:54 +0000 (12:11 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 6 Sep 2013 15:42:10 +0000 (17:42 +0200)
Keep the windows.h include as the first one.
Change-Id: I8e605159bd441ab56be6310644f4aa7c7ecb6abf
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/jsruntime/qv4stacktrace.cpp

index 1cc2e53..b0fabfd 100644 (file)
@@ -39,7 +39,7 @@
 **
 ****************************************************************************/
 
-#if defined(_WIN32)
+#if defined(_WIN32) && !(defined(WINCE) || defined(_WIN32_WCE))
 #include <windows.h>
 #include <DbgHelp.h>
 #endif
@@ -67,7 +67,7 @@ NativeStackTrace::NativeStackTrace(ExecutionContext *context)
     UnwindHelper::prepareForUnwind(context);
 
     nativeFrameCount = backtrace(&trace[0], sizeof(trace) / sizeof(trace[0]));
-#elif defined(Q_OS_WIN)
+#elif defined(Q_OS_WIN) && !defined(Q_OS_WINCE)
 
     int machineType = 0;