Skip to content

Commit

Permalink
Add defined BIGENDIAN in types.h
Browse files Browse the repository at this point in the history
Since ALIGNMENT_WORKAROUND and BIGENDIAN are merged into one if macro in the new line 76, BIGENDIAN should also be added in line 60's ifdef macro, otherwise U64 will be undefined when only BIGENDIAN is defined.

Signed-off-by: Zhongze Hu <[email protected]>
  • Loading branch information
joshuazzhu committed Nov 17, 2022
1 parent a6c522c commit 9456ca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ typedef struct {
} u64;
#endif

#ifdef ALIGNMENT_WORKAROUND
#if defined(ALIGNMENT_WORKAROUND) || defined(BIGENDIAN)
static inline u64 U64(u32 low, u32 high)
{
u64 self;
Expand Down

0 comments on commit 9456ca9

Please sign in to comment.