ruby-changes:74297
From: Nobuyoshi <ko1@a...>
Date: Sun, 30 Oct 2022 23:21:49 +0900 (JST)
Subject: [ruby-changes:74297] 7ed10abdd9 (master): [ruby/bigdecimal] Suppress macro redefinition warnings
https://git.ruby-lang.org/ruby.git/commit/?id=7ed10abdd9 From 7ed10abdd97a324583c9b9794088a41a550abcd0 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 30 Oct 2022 22:21:18 +0900 Subject: [ruby/bigdecimal] Suppress macro redefinition warnings `HAVE_` macros by autoconf are defined as 1. https://github.com/ruby/bigdecimal/commit/cd35868aa6 --- ext/bigdecimal/missing.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/bigdecimal/missing.h b/ext/bigdecimal/missing.h index 307147c0fd..325554b5f5 100644 --- a/ext/bigdecimal/missing.h +++ b/ext/bigdecimal/missing.h @@ -35,10 +35,10 @@ extern "C" { https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/missing.h#L35 #endif /* RB_UNUSED_VAR */ #if defined(_MSC_VER) && _MSC_VER >= 1310 -# define HAVE___ASSUME +# define HAVE___ASSUME 1 #elif defined(__INTEL_COMPILER) && __INTEL_COMPILER >= 1300 -# define HAVE___ASSUME +# define HAVE___ASSUME 1 #endif #ifndef UNREACHABLE -- cgit v1.2.3 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/