Skip to content

Commit 03ec1db

Browse files
committed
Try a different macro for endianness
1 parent 718581b commit 03ec1db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ordered-binary.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ int compareFast(const MDB_val *a, const MDB_val *b) {
3434
bVal = *((uint8_t*) dataB);
3535
} else {
3636
aVal = ntohl(*dataA);
37-
#if __BYTE_ORDER == __BIG_ENDIAN
37+
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
3838
bVal = remaining == 2 ? *dataB & 0xffff0000 : *dataB & 0xffffff00;
3939
#else
4040
bVal = remaining == 2 ? (*((uint8_t*) dataB) << 24) + (*((uint8_t*) dataB + 1) << 16) :

0 commit comments

Comments
 (0)