From 08b54f274d57e4735d0042e295237f176506433d Mon Sep 17 00:00:00 2001 From: Paul Olav Tvete Date: Thu, 10 Sep 2009 09:24:59 +0200 Subject: Compile Reviewed-by: Jeremy Katz --- tests/auto/qthread/tst_qthread.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/auto/qthread/tst_qthread.cpp b/tests/auto/qthread/tst_qthread.cpp index dec25bd..64bdfd0 100644 --- a/tests/auto/qthread/tst_qthread.cpp +++ b/tests/auto/qthread/tst_qthread.cpp @@ -629,6 +629,12 @@ void noop(void*) { } typedef HANDLE ThreadHandle; #endif +#ifdef Q_OS_WIN +#define WIN_FIX_STDCALL __stdcall +#else +#define WIN_FIX_STDCALL +#endif + class NativeThreadWrapper { public: @@ -647,7 +653,7 @@ public: QWaitCondition stopCondition; protected: static void *runUnix(void *data); - static unsigned __stdcall runWin(void *data); + static unsigned WIN_FIX_STDCALL runWin(void *data); FunctionPointer functionPointer; void *data; @@ -711,7 +717,7 @@ void *NativeThreadWrapper::runUnix(void *that) return 0; } -unsigned __stdcall NativeThreadWrapper::runWin(void *data) +unsigned WIN_FIX_STDCALL NativeThreadWrapper::runWin(void *data) { runUnix(data); return 0; -- cgit v0.12