Skip to content

Commit 9456ca9

Browse files
committed
Add defined BIGENDIAN in types.h
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]>
1 parent a6c522c commit 9456ca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ typedef struct {
5757
} u64;
5858
#endif
5959

60-
#ifdef ALIGNMENT_WORKAROUND
60+
#if defined(ALIGNMENT_WORKAROUND) || defined(BIGENDIAN)
6161
static inline u64 U64(u32 low, u32 high)
6262
{
6363
u64 self;

0 commit comments

Comments
 (0)