mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fix macro argument names inconsistency
* include/ruby/defines.h (RUBY_ALIGNAS): Fix macro definition. Fix compile error with Fujitsu C Compiler (fcc) on Solaris. * include/ruby/defines.h (RUBY_ALIGNOF): Fix macro argument name. Fix compile error with fcc and Oracle Solaris Studio 12.4 on Solaris. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ce769284a1
commit
f62a2fd1eb
1 changed files with 2 additions and 2 deletions
|
@ -373,7 +373,7 @@ void rb_ia64_flushrs(void);
|
|||
#endif
|
||||
|
||||
#ifndef RUBY_ALIGNAS
|
||||
#define RUBY_ALIGNAS(x) y
|
||||
#define RUBY_ALIGNAS(x) /* x */
|
||||
#endif
|
||||
|
||||
#ifdef RUBY_ALIGNOF
|
||||
|
@ -383,7 +383,7 @@ void rb_ia64_flushrs(void);
|
|||
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)
|
||||
#define RUBY_ALIGNOF _Alignof
|
||||
#else
|
||||
#define RUBY_ALIGNOF(x) ((size_t)offsetof(struct { char f1; type f2; }, f2))
|
||||
#define RUBY_ALIGNOF(type) ((size_t)offsetof(struct { char f1; type f2; }, f2))
|
||||
#endif
|
||||
|
||||
#define NORETURN_STYLE_NEW 1
|
||||
|
|
Loading…
Reference in a new issue