diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-12-31 22:26:49 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-12-31 23:49:22 +0900 |
commit | 47b248cf18a2aa36e5024f7b90b22c0e74ba862f (patch) | |
tree | fddc22ca99f8dc44be77bf8779068d90a739c82c /src/libs/sqlite2/os.h | |
parent | 81f9898556080cf580aad5486e7914a2fc240fee (diff) | |
download | digikam-47b248cf.tar.gz digikam-47b248cf.zip |
Remove support for Metrowerks compiler
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 02b8017b11b008f83e97820f6fdde68bb7a02b01)
Diffstat (limited to 'src/libs/sqlite2/os.h')
-rw-r--r-- | src/libs/sqlite2/os.h | 46 |
1 files changed, 5 insertions, 41 deletions
diff --git a/src/libs/sqlite2/os.h b/src/libs/sqlite2/os.h index d11198c9..f56e4478 100644 --- a/src/libs/sqlite2/os.h +++ b/src/libs/sqlite2/os.h @@ -62,37 +62,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 /* @@ -141,26 +125,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*); |