From a40998dbbb625acf8fcff7bc943f4cd1f1daf557 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 5 Feb 2018 10:41:43 +0100 Subject: Fix build under Wine Issue: #726 --- compat/macros.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'compat') 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 -#define otr_tr(str) (QCoreApplication::translate(OTR_MODULE_NAME, (str))) -#define _(x) otr_tr((x)) +#if !defined __WINE__ +# include +# define otr_tr(str) (QCoreApplication::translate(OTR_MODULE_NAME, (str))) +# define _(x) otr_tr((x)) +#endif #if defined _MSC_VER # -- cgit v1.2.3