diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/os.h | 9 | ||||
-rw-r--r-- | src/os_win.c | 2 |
2 files changed, 10 insertions, 1 deletions
@@ -66,6 +66,15 @@ #endif /* +** Determine if we are dealing with Windows NT. +*/ +#if defined(_WIN32_WINNT) +# define SQLITE_OS_WINNT 1 +#else +# define SQLITE_OS_WINNT 0 +#endif + +/* ** Determine if we are dealing with WindowsCE - which has a much ** reduced API. */ diff --git a/src/os_win.c b/src/os_win.c index 7e89a8cc0..ae110c541 100644 --- a/src/os_win.c +++ b/src/os_win.c @@ -181,7 +181,7 @@ static int sqlite3_os_type = 0; # define SQLITE_WIN32_HAS_ANSI #endif -#if SQLITE_OS_WINCE || defined(_WIN32_WINNT) +#if SQLITE_OS_WINCE || SQLITE_OS_WINNT # define SQLITE_WIN32_HAS_WIDE #endif |