From 399cbfcbe062a3daf39666ae98c6fdb8c6376494 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 16 Dec 2016 11:54:45 +0100 Subject: compat/util: implicitly include QDebug to every callee --- compat/util.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compat/util.hpp b/compat/util.hpp index 5b9e2c69..19ee1064 100644 --- a/compat/util.hpp +++ b/compat/util.hpp @@ -10,12 +10,15 @@ #include #include +#include #define progn(...) ([&]() { __VA_ARGS__ }()) template using mem = std::shared_ptr; template using ptr = std::unique_ptr; -#if defined(_MSC_VER) && !defined(Q_CREATOR_RUN) +#ifdef Q_CREATOR_RUN +# define DEFUN_WARN_UNUSED +#elif defined(_MSC_VER) # define DEFUN_WARN_UNUSED _Check_return_ #else # define DEFUN_WARN_UNUSED __attribute__((warn_unused_result)) -- cgit v1.2.3