diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-02-05 10:41:43 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-02-05 10:41:43 +0100 |
commit | a40998dbbb625acf8fcff7bc943f4cd1f1daf557 (patch) | |
tree | b2fd13f9ff31b2309e6bf0873fff4f0637fda005 /compat/macros.hpp | |
parent | abd83cdb497d35030ae9d7e69f30faa7ffdfee59 (diff) |
Fix build under Wine
Issue: #726
Diffstat (limited to 'compat/macros.hpp')
-rw-r--r-- | compat/macros.hpp | 8 |
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 # |