aboutsummaryrefslogtreecommitdiff
path: root/src/utf.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-12-24 14:53:27 +0000
committerdrh <drh@noemail.net>2015-12-24 14:53:27 +0000
commite1462a762cae28869a137a7c49f0929f75e2d9d4 (patch)
tree91bfc7e86dacc296f126b34231a473d0410cc9a4 /src/utf.c
parent3e6a1411300a1d0251369b5cf156b1f745895dcf (diff)
downloadsqlite-e1462a762cae28869a137a7c49f0929f75e2d9d4.tar.gz
sqlite-e1462a762cae28869a137a7c49f0929f75e2d9d4.zip
Avoid a harmless compiler warning on systems where the byteorder cannot
be determined at compile-time. FossilOrigin-Name: 7c7b7f26306b6aa6ff35b871ad756f43f5db9838
Diffstat (limited to 'src/utf.c')
-rw-r--r--src/utf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utf.c b/src/utf.c
index 25f4dadf0..ee367c139 100644
--- a/src/utf.c
+++ b/src/utf.c
@@ -37,13 +37,13 @@
#include <assert.h>
#include "vdbeInt.h"
-#ifndef SQLITE_AMALGAMATION
+#if !defined(SQLITE_AMALGAMATION) && SQLITE_BYTEORDER==0
/*
** The following constant value is used by the SQLITE_BIGENDIAN and
** SQLITE_LITTLEENDIAN macros.
*/
const int sqlite3one = 1;
-#endif /* SQLITE_AMALGAMATION */
+#endif /* SQLITE_AMALGAMATION && SQLITE_BYTEORDER==0 */
/*
** This lookup table is used to help decode the first byte of