Skip to content
Snippets Groups Projects
Commit e91a0f67 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Build qtcbuildhelper with MinGW.

Change-Id: I0c6898bd6672c9d3a05c636d9712d9b75a9b6f3b
Reviewed-on: http://codereview.qt.nokia.com/2815


Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@nokia.com>
parent a6ae570c
No related branches found
No related tags found
No related merge requests found
......@@ -95,8 +95,11 @@ int main(int argc, char **)
return 1;
if (!findFirst(strCommandLine, strCommandLineLength, pos, L" \t", pos))
return 1;
#ifdef Q_CC_MSVC
wmemmove_s(strCommandLine, strCommandLineLength, strCommandLine + pos + 1, strCommandLineLength - pos);
#else
wmemmove(strCommandLine, strCommandLine + pos + 1, strCommandLineLength - pos);
#endif
bool bSuccess = startProcess(strCommandLine);
free(strCommandLine);
......@@ -151,7 +154,7 @@ BOOL WINAPI ctrlHandler(DWORD /*dwCtrlType*/)
return TRUE;
}
DWORD WINAPI processWatcherThread(__in LPVOID lpParameter)
DWORD WINAPI processWatcherThread(LPVOID lpParameter)
{
HANDLE hProcess = reinterpret_cast<HANDLE>(lpParameter);
WaitForSingleObject(hProcess, INFINITE);
......
......@@ -10,5 +10,5 @@ QT -= qt core gui
CONFIG += console warn_on
SOURCES += main.cpp
LIBS += user32.lib shell32.lib
LIBS += -luser32 -lshell32
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment