From 802a996693386791688a937a9b15ac6da278b5f0 Mon Sep 17 00:00:00 2001 From: Konstantin Ritt Date: Tue, 2 Dec 2014 19:33:39 +0400 Subject: [PATCH] Fix build on MinGW - alloca() needs malloc.h - crtdbg.h couldn't be found on MinGW Change-Id: Ibbf91a58d39ef1e2572baae3c409393acf7aa5df Reviewed-by: Lars Knoll --- src/qml/jit/qv4regalloc.cpp | 3 +++ tools/qmlplugindump/main.cpp | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/qml/jit/qv4regalloc.cpp b/src/qml/jit/qv4regalloc.cpp index 16792d8..330714d 100644 --- a/src/qml/jit/qv4regalloc.cpp +++ b/src/qml/jit/qv4regalloc.cpp @@ -37,6 +37,9 @@ #include #include +#if defined(Q_CC_MINGW) +# include +#endif namespace { enum { DebugRegAlloc = 0 }; diff --git a/tools/qmlplugindump/main.cpp b/tools/qmlplugindump/main.cpp index b387e4f..36af41c 100644 --- a/tools/qmlplugindump/main.cpp +++ b/tools/qmlplugindump/main.cpp @@ -62,7 +62,9 @@ #include #endif #ifdef Q_OS_WIN -#include +# if !defined(Q_CC_MINGW) +# include +# endif #include #endif -- 2.7.4