aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-08-24 11:08:30 +0000
committerngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-08-24 11:08:30 +0000
commit20a4494c978373525dbc923b4ad58b11b89cfcf8 (patch)
tree0e8dfef8964b9638a5adcae152e84a294e259657 /include
parentc4ec4da6983ffce230dd5c0f4018e75329c109a5 (diff)
downloadruby-20a4494c978373525dbc923b4ad58b11b89cfcf8.tar.gz
* 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
Diffstat (limited to 'include')
-rw-r--r--include/ruby/defines.h3
1 files changed, 3 insertions, 0 deletions
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