diff options
author | kh1 <karsten.heimrich@digia.com> | 2013-01-23 14:29:03 +0100 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@digia.com> | 2013-01-29 11:12:24 +0100 |
commit | 8633d999d691f7072a6a40679398750e1af5f850 (patch) | |
tree | 67eb0742981ede47c1612c44d0a7b7aaac9d713c /src/libs/installer/createshortcutoperation.cpp | |
parent | 80ceccff00a46ecd37ed2c65784cb5905d067526 (diff) |
Make IFW compile with mingw.
Change-Id: I0336e02ef701a2bc392bd385d1822bc51cee0c5c
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src/libs/installer/createshortcutoperation.cpp')
-rw-r--r-- | src/libs/installer/createshortcutoperation.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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 <windows.h> #include <shlobj.h> @@ -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), |