diff options
author | mistachkin <mistachkin@noemail.net> | 2011-12-08 03:51:12 +0000 |
---|---|---|
committer | mistachkin <mistachkin@noemail.net> | 2011-12-08 03:51:12 +0000 |
commit | c4eef45c14dd94e7f611b18d82ffcc9170d621fe (patch) | |
tree | bc3013b5674ef54b3c3895c221c9646859028945 /src | |
parent | 23b1b37229b8f28c70d3711228ef58cb7a370b0b (diff) | |
download | sqlite-c4eef45c14dd94e7f611b18d82ffcc9170d621fe.tar.gz sqlite-c4eef45c14dd94e7f611b18d82ffcc9170d621fe.zip |
Follow the previously established pattern for detecting preprocessor defines for specific flavors of Windows (for NT in this case).
FossilOrigin-Name: a0d92193dd5ae97608748f354aa17eb188431546
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 |