/ Check-in [a136609c]
Login

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

Overview
Comment:Fix SQLITE_BYTEORDER #defines in R-Tree when compiled separately from the amalgamation.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: a136609c98ed3cc673c5a3c2578d49db3f2518d1
User & Date: drh 2017-02-07 13:51:48
Context
2017-02-07
14:22
Fix a test case to account for the fact that sqlite3_blob_reopen() now returns SQLITE_IOERR_NOMEM instead of SQLITE_NOMEM if an OOM occurs in the VFS layer. check-in: e11cc523 user: dan tags: trunk
13:51
Fix SQLITE_BYTEORDER #defines in R-Tree when compiled separately from the amalgamation. check-in: a136609c user: drh tags: trunk
12:58
Make the cellMargin() routine of R-Tree slightly smaller and faster while also fixing a harmless compiler warning. check-in: 07fe6228 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/rtree/rtree.c.

   404    404   */
   405    405   #ifndef SQLITE_BYTEORDER
   406    406   #if (defined(i386)     || defined(__i386__)   || defined(_M_IX86) ||    \
   407    407        defined(__x86_64) || defined(__x86_64__) || defined(_M_X64)  ||    \
   408    408        defined(_M_AMD64) || defined(_M_ARM)     || defined(__x86)   ||    \
   409    409        defined(__arm__)) && !defined(SQLITE_RUNTIME_BYTEORDER)
   410    410   # define SQLITE_BYTEORDER    1234
   411         -#endif
   412         -#if (defined(sparc)    || defined(__ppc__))  \
          411  +#elif (defined(sparc)    || defined(__ppc__))  \
   413    412       && !defined(SQLITE_RUNTIME_BYTEORDER)
   414    413   # define SQLITE_BYTEORDER    4321
   415         -#endif
          414  +#else
   416    415   # define SQLITE_BYTEORDER    0     /* 0 means "unknown at compile-time" */
          416  +#endif
   417    417   #endif
   418    418   
   419    419   
   420    420   /* What version of MSVC is being used.  0 means MSVC is not being used */
   421    421   #ifndef MSVC_VERSION
   422    422   #if defined(_MSC_VER)
   423    423   # define MSVC_VERSION _MSC_VER