mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
merge revision(s) 1faeb44dfc
:
Check if macros are defined before using Assume macros with the same prefix would be defined together. --- include/ruby/io/buffer.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
This commit is contained in:
parent
7256dfd4a1
commit
c54f52fb4d
2 changed files with 5 additions and 5 deletions
|
@ -51,13 +51,13 @@ enum rb_io_buffer_endian {
|
|||
RB_IO_BUFFER_LITTLE_ENDIAN = 4,
|
||||
RB_IO_BUFFER_BIG_ENDIAN = 8,
|
||||
|
||||
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
|
||||
#if defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
|
||||
RB_IO_BUFFER_HOST_ENDIAN = RB_IO_BUFFER_LITTLE_ENDIAN,
|
||||
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
|
||||
#elif defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
|
||||
RB_IO_BUFFER_HOST_ENDIAN = RB_IO_BUFFER_BIG_ENDIAN,
|
||||
#elif REG_DWORD == REG_DWORD_LITTLE_ENDIAN
|
||||
#elif defined(REG_DWORD) && REG_DWORD == REG_DWORD_LITTLE_ENDIAN
|
||||
RB_IO_BUFFER_HOST_ENDIAN = RB_IO_BUFFER_LITTLE_ENDIAN,
|
||||
#elif REG_DWORD == REG_DWORD_BIG_ENDIAN
|
||||
#elif defined(REG_DWORD) && REG_DWORD == REG_DWORD_BIG_ENDIAN
|
||||
RB_IO_BUFFER_HOST_ENDIAN = RB_IO_BUFFER_BIG_ENDIAN,
|
||||
#endif
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
# define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
|
||||
#define RUBY_VERSION_TEENY 5
|
||||
#define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
|
||||
#define RUBY_PATCHLEVEL 256
|
||||
#define RUBY_PATCHLEVEL 257
|
||||
|
||||
#define RUBY_RELEASE_YEAR 2024
|
||||
#define RUBY_RELEASE_MONTH 5
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue