Skip to content

Commit 76472db

Browse files
authored
Merge pull request #138 from zauguin/mac-endian
Fix endian detection in flags test for macOS
2 parents f14f437 + 35fdf90 commit 76472db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/flags.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include <cstdio>
33
#include <cstdlib>
44
#include <sqlite_modern_cpp.h>
5-
#include <endian.h>
5+
#include <sys/types.h>
66
using namespace sqlite;
77
using namespace std;
88

@@ -14,7 +14,7 @@ struct TmpFile
1414
~TmpFile() { remove(fname.c_str()); }
1515
};
1616

17-
#if __BYTE_ORDER == __BIG_ENDIAN
17+
#if BYTE_ORDER == BIG_ENDIAN
1818
#define OUR_UTF16 "UTF-16be"
1919
#else
2020
#define OUR_UTF16 "UTF-16le"

0 commit comments

Comments
 (0)