ruby-changes:70589
From: Nobuyoshi <ko1@a...>
Date: Sat, 25 Dec 2021 22:08:20 +0900 (JST)
Subject: [ruby-changes:70589] 17b48db00f (ruby_3_1): Define fallback RUBY_DEVEL to suppress undef warnings
https://git.ruby-lang.org/ruby.git/commit/?id=17b48db00f From 17b48db00f6248fcd42ced7b398f1dcc36ec4dca Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 25 Dec 2021 16:50:14 +0900 Subject: Define fallback RUBY_DEVEL to suppress undef warnings (cherry picked from commit 566bdaef318674c416494786da551021afb1b5d7) --- vm_debug.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vm_debug.h b/vm_debug.h index 230f0f7b16e..fa70de334d3 100644 --- a/vm_debug.h +++ b/vm_debug.h @@ -31,6 +31,10 @@ void ruby_set_debug_option(const char *str); https://github.com/ruby/ruby/blob/trunk/vm_debug.h#L31 RUBY_SYMBOL_EXPORT_END +#ifndef RUBY_DEVEL +# define RUBY_DEVEL 0 +#endif + #if RUBY_DEVEL #ifndef USE_RUBY_DEBUG_LOG #define USE_RUBY_DEBUG_LOG 0 -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/