aboutsummaryrefslogtreecommitdiff
path: root/src/common/Define.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/Define.h')
-rw-r--r--src/common/Define.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/Define.h b/src/common/Define.h
index 3fa67a832a6..061a6bc2f5e 100644
--- a/src/common/Define.h
+++ b/src/common/Define.h
@@ -83,10 +83,16 @@
# define ATTR_NORETURN __attribute__((__noreturn__))
# define ATTR_PRINTF(F, V) __attribute__ ((__format__ (__printf__, F, V)))
# define ATTR_DEPRECATED __attribute__((__deprecated__))
+# define TRINITY_CONSTEXPR constexpr
#else //COMPILER != COMPILER_GNU
# define ATTR_NORETURN
# define ATTR_PRINTF(F, V)
# define ATTR_DEPRECATED
+#if _MSC_VER >= 1900
+# define TRINITY_CONSTEXPR constexpr
+#else
+# define TRINITY_CONSTEXPR
+#endif
#endif //COMPILER == COMPILER_GNU
#define UI64FMTD "%" PRIu64