mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fixed a bug on platforms without BYTE_ORDER; ref #4190
This commit is contained in:
@@ -71,7 +71,9 @@ static unsigned char base64_dec_tab[128];
|
||||
# elif BYTE_ORDER == LITTLE_ENDIAN
|
||||
# define littleendian 1
|
||||
# define check_little_endian() (void)0
|
||||
# else
|
||||
# endif
|
||||
#endif
|
||||
#ifndef littleendian
|
||||
/* can't distinguish endian in compile time */
|
||||
static int littleendian = 0;
|
||||
static void
|
||||
@@ -80,7 +82,6 @@ check_little_endian(void)
|
||||
unsigned int n = 1;
|
||||
littleendian = (*(unsigned char *)&n == 1);
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
|
||||
static unsigned int
|
||||
|
||||
Reference in New Issue
Block a user