ruby-changes:67014
From: Nobuyoshi <ko1@a...>
Date: Sun, 1 Aug 2021 14:56:29 +0900 (JST)
Subject: [ruby-changes:67014] 605421f4eb (master): gcc 10.3.0 says "__VA_OPT__ is not available until C++2a"
https://git.ruby-lang.org/ruby.git/commit/?id=605421f4eb From 605421f4ebe37699e63eb5551c3dbc7887093e4f Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 1 Aug 2021 09:54:36 +0900 Subject: gcc 10.3.0 says "__VA_OPT__ is not available until C++2a" --- include/ruby/internal/config.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/ruby/internal/config.h b/include/ruby/internal/config.h index 67d7e01..b26e7ee 100644 --- a/include/ruby/internal/config.h +++ b/include/ruby/internal/config.h @@ -126,6 +126,12 @@ https://github.com/ruby/ruby/blob/trunk/include/ruby/internal/config.h#L126 #if ! defined(HAVE_VA_ARGS_MACRO) # undef HAVE___VA_OPT__ +#elif defined(__cplusplus) +# if __cplusplus > 201703L +# define HAVE___VA_OPT__ +# else +# undef HAVE___VA_OPT__ +# endif #else # /* Idea taken from: https://stackoverflow.com/a/48045656 */ # define RBIMPL_TEST3(q, w, e, ...) e -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/