diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-04-08 16:18:59 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-04-08 16:18:59 +0900 |
commit | 6163a4e1b33ed7df27d0c37e835ce04407857a16 (patch) | |
tree | 89ffbf143b287be0a19d27bb9ace3c2496a2a50e /include | |
parent | ba3b99b96a4e2421a90a7d57ade5ef016aec73d0 (diff) | |
download | ruby-6163a4e1b33ed7df27d0c37e835ce04407857a16.tar.gz |
RUBY3_HAS_BUILTIN: fix for nonexistent builtin
Trying to fix icc breakage:
https://rubyci.org/logs/rubyci.s3.amazonaws.com/icc-x64/ruby-master/log/20200408T050004Z.fail.html.gz
It seems the macro had problems when a builtin does not exist for the
target compiler. Force evaluete to 0 then, by adding 0 to the
expression.
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/3/has/builtin.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/3/has/builtin.h b/include/ruby/3/has/builtin.h index 51e1875b72..b095ffde6f 100644 --- a/include/ruby/3/has/builtin.h +++ b/include/ruby/3/has/builtin.h @@ -65,7 +65,7 @@ #else # /* Take config.h definition when available */ -# define RUBY3_HAS_BUILTIN(_) RUBY3_TOKEN_PASTE(RUBY3_HAS_BUILTIN_, _) +# define RUBY3_HAS_BUILTIN(_) (RUBY3_TOKEN_PASTE(RUBY3_HAS_BUILTIN_, _)+0) # define RUBY3_HAS_BUILTIN___builtin_add_overflow HAVE_BUILTIN___BUILTIN_ADD_OVERFLOW # define RUBY3_HAS_BUILTIN___builtin_alloca_with_align HAVE_BUILTIN___BUILTIN_ALLOCA_WITH_ALIGN # define RUBY3_HAS_BUILTIN___builtin_assume_aligned HAVE_BUILTIN___BUILTIN_ASSUME_ALIGNED |