Index: src/os.h ================================================================== --- src/os.h +++ src/os.h @@ -15,11 +15,11 @@ ** the SQLite library will work on both POSIX and windows systems. ** ** This header file is #include-ed by sqliteInt.h and thus ends up ** being included by every source file. ** -** $Id: os.h,v 1.100 2008/05/29 02:53:00 shane Exp $ +** $Id: os.h,v 1.101 2008/05/29 03:54:27 shane Exp $ */ #ifndef _SQLITE_OS_H_ #define _SQLITE_OS_H_ /* @@ -64,10 +64,19 @@ # ifndef OS_WIN # define OS_WIN 0 # endif #endif +/* +** Determine if we are dealing with WindowsCE - which has a much +** reduced API. +*/ +#if defined(_WIN32_WCE) +# define OS_WINCE 1 +#else +# define OS_WINCE 0 +#endif /* ** Define the maximum size of a temporary filename */ Index: src/os_win.c ================================================================== --- src/os_win.c +++ src/os_win.c @@ -10,11 +10,11 @@ ** ****************************************************************************** ** ** This file contains code that is specific to windows. ** -** $Id: os_win.c,v 1.122 2008/05/16 04:51:55 danielk1977 Exp $ +** $Id: os_win.c,v 1.123 2008/05/29 03:54:27 shane Exp $ */ #include "sqliteInt.h" #if OS_WIN /* This file is used for windows only */ @@ -64,15 +64,12 @@ /* ** Determine if we are dealing with WindowsCE - which has a much ** reduced API. */ -#if defined(_WIN32_WCE) -# define OS_WINCE 1 +#if defined(OS_WINCE) # define AreFileApisANSI() 1 -#else -# define OS_WINCE 0 #endif /* ** WinCE lacks native support for file locking so we have to fake it ** with some code of our own.