diff options
| author | Krasimir Angelov <kr.angelov@gmail.com> | 2018-05-21 09:36:39 +0200 |
|---|---|---|
| committer | Krasimir Angelov <kr.angelov@gmail.com> | 2018-05-21 09:36:39 +0200 |
| commit | a6779486c55d3d61637edec135b897a724cb9d2d (patch) | |
| tree | ab653ffa9b3d8005e8478b1f93850a8d452e8538 /src | |
| parent | 1c7e99cdca020ccb1e55b067961813a7752eba3b (diff) | |
fix the compilation when the byte order cannot be detected statically
Diffstat (limited to 'src')
| -rw-r--r-- | src/runtime/c/sg/sqlite3Btree.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/c/sg/sqlite3Btree.c b/src/runtime/c/sg/sqlite3Btree.c index a75cfd62b..ee6bd206a 100644 --- a/src/runtime/c/sg/sqlite3Btree.c +++ b/src/runtime/c/sg/sqlite3Btree.c @@ -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) |
