summaryrefslogtreecommitdiffhomepage
path: root/compat/defs.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'compat/defs.hpp')
-rw-r--r--compat/defs.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/compat/defs.hpp b/compat/defs.hpp
index f4c440f8..585c45d1 100644
--- a/compat/defs.hpp
+++ b/compat/defs.hpp
@@ -47,3 +47,9 @@
#define fm_DECLARE_DEFAULT_MOVE_COPY_ASSIGNMENTS_(type) \
[[maybe_unused]] fm_DECLARE_DEFAULT_MOVE_ASSIGNMENT_(type); \
[[maybe_unused]] fm_DECLARE_DEFAULT_COPY_ASSIGNMENT_(type)
+
+#ifdef _MSC_VER
+# define fm_noinline __declspec(noinline)
+#else
+# define fm_noinline __attribute__((noinline))
+#endif