summaryrefslogtreecommitdiffhomepage
path: root/compat/util.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'compat/util.hpp')
-rw-r--r--compat/util.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/compat/util.hpp b/compat/util.hpp
index 25640483..9439271f 100644
--- a/compat/util.hpp
+++ b/compat/util.hpp
@@ -67,3 +67,11 @@ auto qptr(xs... args)
}
template<typename t> using qshared = QSharedPointer<t>;
+
+#if defined _MSC_VER
+# define OTR_NEVER_INLINE __declspec(noinline)
+#elif defined __GNUG__
+# define OTR_NEVER_INLINE __attribute__((noinline))
+#else
+# define OTR_NEVER_INLINE
+#endif