summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-05-11 16:40:52 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-05-11 16:47:25 +0900
commit4fbb34415659d33b479973e1fdbc71314bd810eb (patch)
treea869444291f48ea353d230e17ffdc467e468578e /include
parent233c2018f1b873a441af22848cee6dedaed3ad72 (diff)
fix sunpro pragma
SunPro's #pragma does_not_return(...) needs an argument. That does not fit the attribute syntax we employ.
Diffstat (limited to 'include')
-rw-r--r--include/ruby/internal/attr/noreturn.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/ruby/internal/attr/noreturn.h b/include/ruby/internal/attr/noreturn.h
index 9a0916c4ee..f741167c12 100644
--- a/include/ruby/internal/attr/noreturn.h
+++ b/include/ruby/internal/attr/noreturn.h
@@ -20,16 +20,12 @@
* extension libraries. They could be written in C++98.
* @brief Defines #RBIMPL_ATTR_NORETURN.
*/
-#include "ruby/internal/compiler_since.h"
#include "ruby/internal/has/attribute.h"
#include "ruby/internal/has/cpp_attribute.h"
#include "ruby/internal/has/declspec_attribute.h"
/** Wraps (or simulates) `[[noreturn]]` */
-#if RBIMPL_COMPILER_SINCE(SunPro, 5, 10, 0)
-# define RBIMPL_ATTR_NORETURN() _Pragma("does_not_return")
-
-#elif RBIMPL_HAS_DECLSPEC_ATTRIBUTE(noreturn)
+#if RBIMPL_HAS_DECLSPEC_ATTRIBUTE(noreturn)
# define RBIMPL_ATTR_NORETURN() __declspec(noreturn)
#elif RBIMPL_HAS_ATTRIBUTE(noreturn)