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