1
0
forked from GitHub/gf-core

fix the compilation when the byte order cannot be detected statically

This commit is contained in:
Krasimir Angelov
2018-05-21 09:36:39 +02:00
parent 1c7e99cdca
commit a6779486c5

View File

@@ -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)