summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-02-05 10:41:43 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-02-05 10:41:43 +0100
commita40998dbbb625acf8fcff7bc943f4cd1f1daf557 (patch)
treeb2fd13f9ff31b2309e6bf0873fff4f0637fda005 /compat
parentabd83cdb497d35030ae9d7e69f30faa7ffdfee59 (diff)
Fix build under Wine
Issue: #726
Diffstat (limited to 'compat')
-rw-r--r--compat/macros.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/compat/macros.hpp b/compat/macros.hpp
index 766730db..c3bbb652 100644
--- a/compat/macros.hpp
+++ b/compat/macros.hpp
@@ -1,8 +1,10 @@
#pragma once
-#include <QCoreApplication>
-#define otr_tr(str) (QCoreApplication::translate(OTR_MODULE_NAME, (str)))
-#define _(x) otr_tr((x))
+#if !defined __WINE__
+# include <QCoreApplication>
+# define otr_tr(str) (QCoreApplication::translate(OTR_MODULE_NAME, (str)))
+# define _(x) otr_tr((x))
+#endif
#if defined _MSC_VER
#