From 8633d999d691f7072a6a40679398750e1af5f850 Mon Sep 17 00:00:00 2001 From: kh1 Date: Wed, 23 Jan 2013 14:29:03 +0100 Subject: Make IFW compile with mingw. Change-Id: I0336e02ef701a2bc392bd385d1822bc51cee0c5c Reviewed-by: Kai Koehne --- src/libs/installer/createshortcutoperation.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/libs/installer/createshortcutoperation.cpp') diff --git a/src/libs/installer/createshortcutoperation.cpp b/src/libs/installer/createshortcutoperation.cpp index 5142e65de..20be6bfa9 100644 --- a/src/libs/installer/createshortcutoperation.cpp +++ b/src/libs/installer/createshortcutoperation.cpp @@ -52,6 +52,11 @@ using namespace QInstaller; #ifdef Q_OS_WIN +#ifdef Q_CC_MINGW +# ifndef _WIN32_WINNT +# define _WIN32_WINNT 0x0501 +# endif +#endif #include #include @@ -192,7 +197,7 @@ bool CreateShortcutOperation::performOperation() if (!created) { setError(UserDefinedError); -#ifdef Q_OS_WIN +#if defined(Q_OS_WIN) && !defined(Q_CC_MINGW) char msg[128]; if (strerror_s(msg, sizeof msg, errno) != 0) { setErrorString(tr("Could not create folder %1: %2.").arg(QDir::toNativeSeparators(linkPath), -- cgit v1.2.3