Skip to content

Commit

Permalink
Fix endianess problem
Browse files Browse the repository at this point in the history
  • Loading branch information
XVilka authored Oct 11, 2021
1 parent 4a054be commit eea1ad2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions librz/include/rz_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -500,12 +500,12 @@ static inline void *rz_new_copy(int size, void *data) {
#if defined(_M_X64) || defined(_M_AMD64)
#define RZ_SYS_ARCH "x86"
#define RZ_SYS_BITS (RZ_SYS_BITS_32 | RZ_SYS_BITS_64)
#define RZ_SYS_ENDIAN 1
#define RZ_SYS_ENDIAN 0
#define __x86_64__ 1
#elif defined(_M_IX86)
#define RZ_SYS_ARCH "x86"
#define RZ_SYS_BITS (RZ_SYS_BITS_32)
#define RZ_SYS_ENDIAN 1
#define RZ_SYS_ENDIAN 0
#define __i386__ 1
#elif defined(_M_ARM64)
#define RZ_SYS_ARCH "arm"
Expand Down

0 comments on commit eea1ad2

Please sign in to comment.