1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-09-02 12:21:26 +03:00

Add macros tests so that the compiler always recognizes that x86_64 is little endian. (CVS 5807)

FossilOrigin-Name: b201e7093c7c47b23b0f17a0890a344f3792d6d3
This commit is contained in:
drh
2008-10-11 18:11:21 +00:00
parent 9ff3f3f772
commit 189077f376
3 changed files with 11 additions and 10 deletions

View File

@@ -11,7 +11,7 @@
*************************************************************************
** Internal interface definitions for SQLite.
**
** @(#) $Id: sqliteInt.h,v 1.782 2008/10/11 16:47:36 drh Exp $
** @(#) $Id: sqliteInt.h,v 1.783 2008/10/11 18:11:21 drh Exp $
*/
#ifndef _SQLITEINT_H_
#define _SQLITEINT_H_
@@ -387,7 +387,8 @@ const int sqlite3one;
#else
extern const int sqlite3one;
#endif
#if defined(i386) || defined(__i386__) || defined(_M_IX86)
#if defined(i386) || defined(__i386__) || defined(_M_IX86)\
|| defined(__x86_64) || defined(__x86_64__)
# define SQLITE_BIGENDIAN 0
# define SQLITE_LITTLEENDIAN 1
# define SQLITE_UTF16NATIVE SQLITE_UTF16LE