Fossil SCM
better fix
Commit
3c33959096d6cdc8403f2d92905cffdd1534283f
Parent
d339a7b2e3b2b41…
1 file changed
+2
-2
+2
-2
| --- src/sqlite3.c | ||
| +++ src/sqlite3.c | ||
| @@ -30844,13 +30844,13 @@ | ||
| 30844 | 30844 | ** API as long as we don't call it when running Win95/98/ME. A call to |
| 30845 | 30845 | ** this routine is used to determine if the host is Win95/98/ME or |
| 30846 | 30846 | ** WinNT/2K/XP so that we will know whether or not we can safely call |
| 30847 | 30847 | ** the LockFileEx() API. |
| 30848 | 30848 | */ |
| 30849 | -#if SQLITE_OS_WINCE || SQLITE_OS_WINRT | |
| 30849 | +#if !defined(SQLITE_WIN32_HAS_ANSI) | |
| 30850 | 30850 | # define isNT() (1) |
| 30851 | -#elif !SQLITE_OS_WINNT | |
| 30851 | +#elif !defined(SQLITE_WIN32_HAS_WIDE) | |
| 30852 | 30852 | # define isNT() (0) |
| 30853 | 30853 | #else |
| 30854 | 30854 | static int isNT(void){ |
| 30855 | 30855 | if( sqlite3_os_type==0 ){ |
| 30856 | 30856 | OSVERSIONINFOA sInfo; |
| 30857 | 30857 |
| --- src/sqlite3.c | |
| +++ src/sqlite3.c | |
| @@ -30844,13 +30844,13 @@ | |
| 30844 | ** API as long as we don't call it when running Win95/98/ME. A call to |
| 30845 | ** this routine is used to determine if the host is Win95/98/ME or |
| 30846 | ** WinNT/2K/XP so that we will know whether or not we can safely call |
| 30847 | ** the LockFileEx() API. |
| 30848 | */ |
| 30849 | #if SQLITE_OS_WINCE || SQLITE_OS_WINRT |
| 30850 | # define isNT() (1) |
| 30851 | #elif !SQLITE_OS_WINNT |
| 30852 | # define isNT() (0) |
| 30853 | #else |
| 30854 | static int isNT(void){ |
| 30855 | if( sqlite3_os_type==0 ){ |
| 30856 | OSVERSIONINFOA sInfo; |
| 30857 |
| --- src/sqlite3.c | |
| +++ src/sqlite3.c | |
| @@ -30844,13 +30844,13 @@ | |
| 30844 | ** API as long as we don't call it when running Win95/98/ME. A call to |
| 30845 | ** this routine is used to determine if the host is Win95/98/ME or |
| 30846 | ** WinNT/2K/XP so that we will know whether or not we can safely call |
| 30847 | ** the LockFileEx() API. |
| 30848 | */ |
| 30849 | #if !defined(SQLITE_WIN32_HAS_ANSI) |
| 30850 | # define isNT() (1) |
| 30851 | #elif !defined(SQLITE_WIN32_HAS_WIDE) |
| 30852 | # define isNT() (0) |
| 30853 | #else |
| 30854 | static int isNT(void){ |
| 30855 | if( sqlite3_os_type==0 ){ |
| 30856 | OSVERSIONINFOA sInfo; |
| 30857 |