From 4e062d14d205c6a23c59829aa6b2a570d4bfea35 Mon Sep 17 00:00:00 2001 From: ngoto Date: Wed, 24 Aug 2016 11:08:30 +0000 Subject: * include/ruby/defines.h (ALWAYS_INLINE): Add alternative definition. Fix compile error with compilers that do not have force inline attribute, including old version of fcc on Solaris 10. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/defines.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/ruby/defines.h b/include/ruby/defines.h index 610fbf4417..89e549ec19 100644 --- a/include/ruby/defines.h +++ b/include/ruby/defines.h @@ -45,6 +45,9 @@ extern "C" { #ifndef NOINLINE # define NOINLINE(x) x #endif +#ifndef ALWAYS_INLINE +# define ALWAYS_INLINE(x) x +#endif #ifndef ERRORFUNC # define HAVE_ATTRIBUTE_ERRORFUNC 0 # define ERRORFUNC(mesg, x) x -- cgit v1.2.1