Fossil SCM

fix crash in Win95 build when running on WinNT+

jan.nijtmans 2012-09-12 11:04 UTC restore-win95
Commit d339a7b2e3b2b4133ff4e95a908001d9df8dd3d0
1 file changed +2
--- src/sqlite3.c
+++ src/sqlite3.c
@@ -30846,10 +30846,12 @@
3084630846
** WinNT/2K/XP so that we will know whether or not we can safely call
3084730847
** the LockFileEx() API.
3084830848
*/
3084930849
#if SQLITE_OS_WINCE || SQLITE_OS_WINRT
3085030850
# define isNT() (1)
30851
+#elif !SQLITE_OS_WINNT
30852
+# define isNT() (0)
3085130853
#else
3085230854
static int isNT(void){
3085330855
if( sqlite3_os_type==0 ){
3085430856
OSVERSIONINFOA sInfo;
3085530857
sInfo.dwOSVersionInfoSize = sizeof(sInfo);
3085630858
--- src/sqlite3.c
+++ src/sqlite3.c
@@ -30846,10 +30846,12 @@
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 #else
30852 static int isNT(void){
30853 if( sqlite3_os_type==0 ){
30854 OSVERSIONINFOA sInfo;
30855 sInfo.dwOSVersionInfoSize = sizeof(sInfo);
30856
--- src/sqlite3.c
+++ src/sqlite3.c
@@ -30846,10 +30846,12 @@
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 sInfo.dwOSVersionInfoSize = sizeof(sInfo);
30858

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button