diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-01-01 13:14:26 +0900 | 
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-01-01 13:14:26 +0900 | 
| commit | 37293565c31fa447fbf7cb0566be51d1204e8991 (patch) | |
| tree | 0b62542b6be5ad60d1e6e02d68557554ebba6f3e /src/3rdparty/sqlite/os.h | |
| parent | 7eccd2d0161a0e17e0609b26a006df35dfd0f462 (diff) | |
| download | tqt-37293565c31fa447fbf7cb0566be51d1204e8991.tar.gz tqt-37293565c31fa447fbf7cb0566be51d1204e8991.zip | |
Remove support for Metrowerks compiler
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/3rdparty/sqlite/os.h')
| -rw-r--r-- | src/3rdparty/sqlite/os.h | 46 | 
1 files changed, 5 insertions, 41 deletions
| diff --git a/src/3rdparty/sqlite/os.h b/src/3rdparty/sqlite/os.h index 5b12c21cd..d5541d469 100644 --- a/src/3rdparty/sqlite/os.h +++ b/src/3rdparty/sqlite/os.h @@ -63,37 +63,21 @@  ** Figure out if we are dealing with Unix, Windows or MacOS.  **  ** N.B. MacOS means Mac Classic (or Carbon). Treat Darwin (OS X) as Unix. -**      The MacOS build is designed to use CodeWarrior (tested with v8)  */  #ifndef OS_UNIX  # ifndef OS_WIN -#  ifndef OS_MAC -#    if defined(__MACOS__) -#      define OS_MAC 1 -#      define OS_WIN 0 -#      define OS_UNIX 0 -#    elif defined(_WIN32) || defined(WIN32) || defined(__CYGWIN__) || defined(__MINGW32__) -#      define OS_MAC 0 -#      define OS_WIN 1 -#      define OS_UNIX 0 -#    else -#      define OS_MAC 0 -#      define OS_WIN 0 -#      define OS_UNIX 1 -#    endif +#  if defined(_WIN32) || defined(WIN32) || defined(__CYGWIN__) || defined(__MINGW32__) +#    define OS_WIN 1 +#    define OS_UNIX 0  #  else  #    define OS_WIN 0 -#    define OS_UNIX 0 +#    define OS_UNIX 1  #  endif  # else -#  define OS_MAC 0  #  define OS_UNIX 0  # endif  #else -# define OS_MAC 0 -# ifndef OS_WIN -#  define OS_WIN 0 -# endif +# define OS_WIN 0  #endif  /* @@ -142,26 +126,6 @@  # define SQLITE_MIN_SLEEP_MS 1  #endif -#if OS_MAC -# include <unistd.h> -# include <Files.h> -  typedef struct OsFile OsFile; -  struct OsFile { -    SInt16 refNum;           /* Data fork/file reference number */ -    SInt16 refNumRF;         /* Resource fork reference number (for locking) */ -    int locked;              /* 0: unlocked, <0: write lock, >0: read lock */ -    int delOnClose;          /* True if file is to be deleted on close */ -    char *pathToDel;         /* Name of file to delete on close */ -  }; -# ifdef _LARGE_FILE -    typedef SInt64 off_t; -# else -    typedef SInt32 off_t; -# endif -# define SQLITE_TEMPNAME_SIZE _MAX_PATH -# define SQLITE_MIN_SLEEP_MS 17 -#endif -  int sqliteOsDelete(const char*);  int sqliteOsFileExists(const char*);  int sqliteOsFileRename(const char*, const char*); | 
