diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-11-12 00:24:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-11-12 18:48:11 +0300 |
commit | 7c74a98fb966213ccbdba6e397a6d8a9502f2b17 (patch) | |
tree | 60ae28a9b6598889881312fa08360d086f47241c /src/localconsts.h | |
parent | c3b5c3ad370358d4e10b4cbe787dbbd61ce82c08 (diff) | |
download | manaplus-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.h | 8 |
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)) |