Team Ai
Modelpublic

AryaWu/sqlite

sourceHugging Faceupdated 10mo agoView on Hugging Face
0likes
os_setup.h92 linesDownload Raw Back to src
1/*2** 2013 November 253**4** The author disclaims copyright to this source code.  In place of5** a legal notice, here is a blessing:6**7**    May you do good and not evil.8**    May you find forgiveness for yourself and forgive others.9**    May you share freely, never taking more than you give.10**11******************************************************************************12**13** This file contains pre-processor directives related to operating system14** detection and/or setup.15*/16#ifndef SQLITE_OS_SETUP_H17#define SQLITE_OS_SETUP_H18 19/*20** Figure out if we are dealing with Unix, Windows, or some other operating21** system.22**23** After the following block of preprocess macros, all of 24**25**    SQLITE_OS_KV26**    SQLITE_OS_OTHER27**    SQLITE_OS_UNIX28**    SQLITE_OS_WIN29**30** will defined to either 1 or 0. One of them will be 1. The others will be 0.31** If none of the macros are initially defined, then select either32** SQLITE_OS_UNIX or SQLITE_OS_WIN depending on the target platform.33**34** If SQLITE_OS_OTHER=1 is specified at compile-time, then the application35** must provide its own VFS implementation together with sqlite3_os_init()36** and sqlite3_os_end() routines.37*/38#if SQLITE_OS_KV+1<=1  && SQLITE_OS_OTHER+1<=1 &&  \39    SQLITE_OS_WIN+1<=1 && SQLITE_OS_UNIX+1<=1 40#  if defined(_WIN32) || defined(WIN32) || defined(__CYGWIN__) || \41          defined(__MINGW32__) || defined(__BORLANDC__)42#    define SQLITE_OS_WIN 143#    define SQLITE_OS_UNIX 044#  else45#    define SQLITE_OS_WIN 046#    define SQLITE_OS_UNIX 147#  endif48#endif49#if SQLITE_OS_OTHER+1>150#  undef SQLITE_OS_KV51#  define SQLITE_OS_KV 052#  undef SQLITE_OS_UNIX53#  define SQLITE_OS_UNIX 054#  undef SQLITE_OS_WIN55#  define SQLITE_OS_WIN 056#endif57#if SQLITE_OS_KV+1>158#  undef SQLITE_OS_OTHER59#  define SQLITE_OS_OTHER 060#  undef SQLITE_OS_UNIX61#  define SQLITE_OS_UNIX 062#  undef SQLITE_OS_WIN63#  define SQLITE_OS_WIN 064#  define SQLITE_OMIT_LOAD_EXTENSION 165#  define SQLITE_OMIT_WAL 166#  define SQLITE_OMIT_DEPRECATED 167#  undef SQLITE_TEMP_STORE68#  define SQLITE_TEMP_STORE 3  /* Always use memory for temporary storage */69#  define SQLITE_DQS 070#  define SQLITE_OMIT_SHARED_CACHE 171#  define SQLITE_OMIT_AUTOINIT 172#endif73#if SQLITE_OS_UNIX+1>174#  undef SQLITE_OS_KV75#  define SQLITE_OS_KV 076#  undef SQLITE_OS_OTHER77#  define SQLITE_OS_OTHER 078#  undef SQLITE_OS_WIN79#  define SQLITE_OS_WIN 080#endif81#if SQLITE_OS_WIN+1>182#  undef SQLITE_OS_KV83#  define SQLITE_OS_KV 084#  undef SQLITE_OS_OTHER85#  define SQLITE_OS_OTHER 086#  undef SQLITE_OS_UNIX87#  define SQLITE_OS_UNIX 088#endif89 90 91#endif /* SQLITE_OS_SETUP_H */92