/ Check-in [b201e709]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add macros tests so that the compiler always recognizes that x86_64 is little endian. (CVS 5807)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: b201e7093c7c47b23b0f17a0890a344f3792d6d3
User & Date: drh 2008-10-11 18:11:21
Context
2008-10-12
00:27
Added SQLITE_OMIT_DEPRECATED compile time option to leave out deprecated functions. Updated test scripts to skip tests of deprecated functions if they are compiled out. (CVS 5808) check-in: ba3711ac user: shane tags: trunk
2008-10-11
18:11
Add macros tests so that the compiler always recognizes that x86_64 is little endian. (CVS 5807) check-in: b201e709 user: drh tags: trunk
17:51
When transfering an error message from a statement handle to the database handle so that it can be accessed by sqlite3_errmsg(), a malloc may fail. If this malloc fails, it is considered benign. (CVS 5806) check-in: 311003af user: danielk1977 tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/sqliteInt.h.

     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** Internal interface definitions for SQLite.
    13     13   **
    14         -** @(#) $Id: sqliteInt.h,v 1.782 2008/10/11 16:47:36 drh Exp $
           14  +** @(#) $Id: sqliteInt.h,v 1.783 2008/10/11 18:11:21 drh Exp $
    15     15   */
    16     16   #ifndef _SQLITEINT_H_
    17     17   #define _SQLITEINT_H_
    18     18   
    19     19   /*
    20     20   ** Include the configuration header output by 'configure' if we're using the
    21     21   ** autoconf-based build
................................................................................
   383    383   ** evaluated at runtime.
   384    384   */
   385    385   #ifdef SQLITE_AMALGAMATION
   386    386   const int sqlite3one;
   387    387   #else
   388    388   extern const int sqlite3one;
   389    389   #endif
   390         -#if defined(i386) || defined(__i386__) || defined(_M_IX86)
          390  +#if defined(i386) || defined(__i386__) || defined(_M_IX86)\
          391  +                             || defined(__x86_64) || defined(__x86_64__)
   391    392   # define SQLITE_BIGENDIAN    0
   392    393   # define SQLITE_LITTLEENDIAN 1
   393    394   # define SQLITE_UTF16NATIVE  SQLITE_UTF16LE
   394    395   #else
   395    396   # define SQLITE_BIGENDIAN    (*(char *)(&sqlite3one)==0)
   396    397   # define SQLITE_LITTLEENDIAN (*(char *)(&sqlite3one)==1)
   397    398   # define SQLITE_UTF16NATIVE (SQLITE_BIGENDIAN?SQLITE_UTF16BE:SQLITE_UTF16LE)