summaryrefslogtreecommitdiff
path: root/src/common/cbasetypes.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2017-08-09 00:27:35 +0200
committerGitHub <noreply@github.com>2017-08-09 00:27:35 +0200
commit248285d5a4be058b6abb40a9e31fff189bd2f598 (patch)
tree0b4035b6267ffe9dc107add4a5ea859eb587cae3 /src/common/cbasetypes.h
parent537b2bb3510f52eb9ccdee4f98e6061b5878bff0 (diff)
parenta1a9ce04eeefb5ff00b2101732ef3f5e02d36093 (diff)
downloadhercules-248285d5a4be058b6abb40a9e31fff189bd2f598.tar.gz
hercules-248285d5a4be058b6abb40a9e31fff189bd2f598.tar.bz2
hercules-248285d5a4be058b6abb40a9e31fff189bd2f598.tar.xz
hercules-248285d5a4be058b6abb40a9e31fff189bd2f598.zip
Merge pull request #1816 from 4144/travis
Add into travis check for hpm update
Diffstat (limited to 'src/common/cbasetypes.h')
-rw-r--r--src/common/cbasetypes.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/cbasetypes.h b/src/common/cbasetypes.h
index 2c36c23bc..5be2d62e4 100644
--- a/src/common/cbasetypes.h
+++ b/src/common/cbasetypes.h
@@ -306,6 +306,13 @@ typedef uintptr_t uintptr;
#define PRAGMA_GCC46(str)
#endif // ! defined(__GNUC__) && (defined(__clang__) || GCC_VERSION >= 40600)
+// Pragma macro only enabled on gcc >= 5 or clang - borrowed from Mana Plus
+#if defined(__GNUC__) && (GCC_VERSION >= 50000)
+#define PRAGMA_GCC5(str) _Pragma(#str)
+#else // ! defined(__GNUC__) && (GCC_VERSION >= 50000)
+#define PRAGMA_GCC5(str)
+#endif // ! defined(__GNUC__) && (GCC_VERSION >= 50000)
+
// fallthrough attribute only enabled on gcc >= 7.0
#if defined(__GNUC__) && (GCC_VERSION >= 70000)
#define FALLTHROUGH __attribute__ ((fallthrough));