mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
One more change before 2.4.2: Make the os.h header file more robust in
detecting whether to use unix or windows. (CVS 434) FossilOrigin-Name: c2e0b79057c9c643e7432e62c90399c8f34339f9
This commit is contained in:
16
src/os.c
16
src/os.c
@@ -17,22 +17,6 @@
|
||||
#include "sqliteInt.h"
|
||||
#include "os.h"
|
||||
|
||||
#ifndef OS_UNIX
|
||||
# ifndef OS_WIN
|
||||
# if defined(_WIN32) || defined(WIN32) || defined(__CYGWIN__) || defined(__MINGW32__) || defined(__BORLANDC__)
|
||||
# define OS_WIN 1
|
||||
# define OS_UNIX 0
|
||||
# else
|
||||
# define OS_WIN 0
|
||||
# define OS_UNIX 1
|
||||
# endif
|
||||
# else
|
||||
# define OS_UNIX 0
|
||||
# endif
|
||||
#endif
|
||||
#ifndef OS_WIN
|
||||
# define OS_WIN 0
|
||||
#endif
|
||||
#if OS_UNIX
|
||||
# include <unistd.h>
|
||||
# include <fcntl.h>
|
||||
|
Reference in New Issue
Block a user