/ Check-in [baa8b783]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix an #if that is applicable to WinRT, even thought it is currently disabled by another #if.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:baa8b7830779d5797e210a2e057181413412e152
User & Date: mistachkin 2012-06-06 23:25:33
Context
2012-06-06
23:59
Fix harmless Clang warnings. check-in: 31fe1985 user: drh tags: trunk
23:25
Fix an #if that is applicable to WinRT, even thought it is currently disabled by another #if. check-in: baa8b783 user: mistachkin tags: trunk
23:23
Merge the changes need to compile on WinRT into trunk. check-in: 61360ca6 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/mutex_w32.c.

52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
** mutexIsNT() is only used for the TryEnterCriticalSection() API call,
** which is only available if your application was compiled with 
** _WIN32_WINNT defined to a value >= 0x0400.  Currently, the only
** call to TryEnterCriticalSection() is #ifdef'ed out, so #ifdef 
** this out as well.
*/
#if 0
#if SQLITE_OS_WINCE
# define mutexIsNT()  (1)
#else
  static int mutexIsNT(void){
    static int osType = 0;
    if( osType==0 ){
      OSVERSIONINFO sInfo;
      sInfo.dwOSVersionInfoSize = sizeof(sInfo);







|







52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
** mutexIsNT() is only used for the TryEnterCriticalSection() API call,
** which is only available if your application was compiled with 
** _WIN32_WINNT defined to a value >= 0x0400.  Currently, the only
** call to TryEnterCriticalSection() is #ifdef'ed out, so #ifdef 
** this out as well.
*/
#if 0
#if SQLITE_OS_WINCE || SQLITE_OS_WINRT
# define mutexIsNT()  (1)
#else
  static int mutexIsNT(void){
    static int osType = 0;
    if( osType==0 ){
      OSVERSIONINFO sInfo;
      sInfo.dwOSVersionInfoSize = sizeof(sInfo);