summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2021-09-09 11:12:33 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2021-09-10 20:00:06 +0900
commit4f03930d04a0185ee9057ee314cfb79eb5a1b73a (patch)
tree0f37a6818c48138cd446bfc494dafac97eea1617 /include
parent679f4b895b683430c49f0014ac885eb9291d59e9 (diff)
ruby_cleanup: fix MSVC compile error
See https://ci.appveyor.com/project/ruby/ruby/builds/40686153/job/1wihxw5m5kybtohj
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4815
Diffstat (limited to 'include')
-rw-r--r--include/ruby/internal/interpreter.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/ruby/internal/interpreter.h b/include/ruby/internal/interpreter.h
index f8dd9bf88d..662d39c0ec 100644
--- a/include/ruby/internal/interpreter.h
+++ b/include/ruby/internal/interpreter.h
@@ -168,11 +168,7 @@ int ruby_setup(void);
* @retval ex Successful cleanup.
* @note This function does not raise any exception.
*/
-int ruby_cleanup(
-#if !defined(__cplusplus) || __cplusplus <= 201704L
- volatile /* C++20 killed volatile. cf: http://wg21.link/P1152 */
-#endif
- int ex);
+int ruby_cleanup(int ex);
/**
* Runs the VM finalization processes.