summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-12-16 11:54:45 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-12-16 11:54:45 +0100
commit399cbfcbe062a3daf39666ae98c6fdb8c6376494 (patch)
treef0f4690b58309255807b173306e8462a97ada57a
parent4d62adf8bc4f78f8dca8196c7f52a6a44cc5829a (diff)
compat/util: implicitly include QDebug to every callee
-rw-r--r--compat/util.hpp5
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))