summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-11-12 00:24:41 +0300
committerAndrei Karas <akaras@inbox.ru>2018-11-12 18:48:11 +0300
commit7c74a98fb966213ccbdba6e397a6d8a9502f2b17 (patch)
tree60ae28a9b6598889881312fa08360d086f47241c /src/localconsts.h
parentc3b5c3ad370358d4e10b4cbe787dbbd61ce82c08 (diff)
downloadmanaplus-7c74a98fb966213ccbdba6e397a6d8a9502f2b17.tar.gz
manaplus-7c74a98fb966213ccbdba6e397a6d8a9502f2b17.tar.bz2
manaplus-7c74a98fb966213ccbdba6e397a6d8a9502f2b17.tar.xz
manaplus-7c74a98fb966213ccbdba6e397a6d8a9502f2b17.zip
Add missing constexpr and noexcept into maplayer.
Diffstat (limited to 'src/localconsts.h')
-rw-r--r--src/localconsts.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/localconsts.h b/src/localconsts.h
index 523f80569..af5d2b002 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -91,6 +91,14 @@
name &operator=(const name&) = delete;
#endif // !defined(__GXX_EXPERIMENTAL_CXX0X__)
+#ifdef __clang__
+#define constexpr3
+#elif GCC_VERSION > 70000
+#define constexpr3 constexpr
+#else
+#define constexpr3
+#endif
+
#ifdef __GNUC__
#define A_UNUSED __attribute__ ((unused))
#define A_WARN_UNUSED __attribute__ ((warn_unused_result))