mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-11-04 11:15:27 -07:00
fix the compilation when the byte order cannot be detected statically
This commit is contained in:
1 parent
1c7e99cdca
commit
a6779486c5
1 file changed
+1
@@ -4918,6 +4918,7 @@ SQLITE_PRIVATE int sqlite3PendingByte;
|
||||
# define SQLITE_UTF16NATIVE SQLITE_UTF16BE
|
||||
#endif
|
||||
#if !defined(SQLITE_BYTEORDER)
|
||||
const int sqlite3one = 1;
|
||||
# define SQLITE_BYTEORDER 0 /* 0 means "unknown at compile-time" */
|
||||
# define SQLITE_BIGENDIAN (*(char *)(&sqlite3one)==0)
|
||||
# define SQLITE_LITTLEENDIAN (*(char *)(&sqlite3one)==1)
|
||||
|
||||
Reference in new issue
Block a user