From 6664324b12a3339d18251df1cd69a1da06d1e2dc Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Fri, 17 Jul 2009 09:36:44 +0200 Subject: Fix MinGW (g++ 3.4.5) compilation. ...to be reverted once it is deprecated. Reviewed-by: Thierry Bastian --- src/gui/kernel/qapplication_win.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gui/kernel/qapplication_win.cpp b/src/gui/kernel/qapplication_win.cpp index ed219cd..cbcac9a 100644 --- a/src/gui/kernel/qapplication_win.cpp +++ b/src/gui/kernel/qapplication_win.cpp @@ -3958,9 +3958,10 @@ qt_CloseTouchInputHandlePtr QApplicationPrivate::CloseTouchInputHandle = 0; void QApplicationPrivate::initializeMultitouch_sys() { QLibrary library(QLatin1String("user32")); - RegisterTouchWindow = reinterpret_cast(library.resolve("RegisterTouchWindow")); - GetTouchInputInfo = reinterpret_cast(library.resolve("GetTouchInputInfo")); - CloseTouchInputHandle = reinterpret_cast(library.resolve("CloseTouchInputHandle")); + // MinGW (g++ 3.4.5) accepts only C casts. + RegisterTouchWindow = (qt_RegisterTouchWindowPtr)(library.resolve("RegisterTouchWindow")); + GetTouchInputInfo = (qt_GetTouchInputInfoPtr)(library.resolve("GetTouchInputInfo")); + CloseTouchInputHandle = (qt_CloseTouchInputHandlePtr)(library.resolve("CloseTouchInputHandle")); touchInputIDToTouchPointID.clear(); } -- cgit v0.12