summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/binaryformat.cpp
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@digia.com>2013-01-23 14:29:03 +0100
committerKarsten Heimrich <karsten.heimrich@digia.com>2013-01-29 11:12:24 +0100
commit8633d999d691f7072a6a40679398750e1af5f850 (patch)
tree67eb0742981ede47c1612c44d0a7b7aaac9d713c /src/libs/installer/binaryformat.cpp
parent80ceccff00a46ecd37ed2c65784cb5905d067526 (diff)
Make IFW compile with mingw.
Change-Id: I0336e02ef701a2bc392bd385d1822bc51cee0c5c Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src/libs/installer/binaryformat.cpp')
-rw-r--r--src/libs/installer/binaryformat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/installer/binaryformat.cpp b/src/libs/installer/binaryformat.cpp
index 102a7bd87..50e4e24f3 100644
--- a/src/libs/installer/binaryformat.cpp
+++ b/src/libs/installer/binaryformat.cpp
@@ -311,7 +311,7 @@ bool Archive::copy(const QString &name)
errno = 0;
const QString absoluteFilePath = fileInfo.absoluteFilePath();
if (!fileInfo.exists() && !QDir().mkpath(absoluteFilePath)) {
-#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 %1: %2").arg(name, QString::fromLocal8Bit(msg)));