summaryrefslogtreecommitdiff
path: root/modules/mono/utils
diff options
context:
space:
mode:
authorIgnacio Etcheverry <ignalfonsore@gmail.com>2019-02-10 18:02:10 +0100
committerIgnacio Etcheverry <ignalfonsore@gmail.com>2019-02-10 18:45:18 +0100
commitb67955afcae7a63a37fba7d046c7217bd8a6c3c3 (patch)
tree64c6c8de20c670465caa614fe551401d598cd1e8 /modules/mono/utils
parente190589f3debad7bb20f62288d13f99378a0dbe2 (diff)
Fix check to determine if [[noreturn]] attribute is usable
Diffstat (limited to 'modules/mono/utils')
-rw-r--r--modules/mono/utils/macros.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/mono/utils/macros.h b/modules/mono/utils/macros.h
index 87295a98f2..e44f254e1c 100644
--- a/modules/mono/utils/macros.h
+++ b/modules/mono/utils/macros.h
@@ -31,10 +31,6 @@
#ifndef UTIL_MACROS_H
#define UTIL_MACROS_H
-#ifndef __has_cpp_attribute
-#define __has_cpp_attribute(attr_token) 0
-#endif
-
#define _GD_VARNAME_CONCAT_B_(m_ignore, m_name) m_name
#define _GD_VARNAME_CONCAT_A_(m_a, m_b, m_c) _GD_VARNAME_CONCAT_B_(hello there, m_a##m_b##m_c)
#define _GD_VARNAME_CONCAT_(m_a, m_b, m_c) _GD_VARNAME_CONCAT_A_(m_a, m_b, m_c)
@@ -61,7 +57,7 @@
// noreturn
// TODO: Get rid of this macro once we upgrade to C++11
-#if __has_cpp_attribute(deprecated)
+#if (__cplusplus >= 201103L)
#define GD_NORETURN [[noreturn]]
#elif defined(__GNUC__)
#define GD_NORETURN __attribute__((noreturn))