diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-12-16 11:54:45 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-12-16 11:54:45 +0100 |
commit | 399cbfcbe062a3daf39666ae98c6fdb8c6376494 (patch) | |
tree | f0f4690b58309255807b173306e8462a97ada57a /compat/util.hpp | |
parent | 4d62adf8bc4f78f8dca8196c7f52a6a44cc5829a (diff) |
compat/util: implicitly include QDebug to every callee
Diffstat (limited to 'compat/util.hpp')
-rw-r--r-- | compat/util.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
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 <utility> #include <QSharedPointer> +#include <QDebug> #define progn(...) ([&]() { __VA_ARGS__ }()) template<typename t> using mem = std::shared_ptr<t>; template<typename t> using ptr = std::unique_ptr<t>; -#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)) |