Fossil SCM

Cherrypick SQLite [http://www.sqlite.org/src/info/1e131094b5|1e131094b5]: For the Win32 VFS, defining winShmMutexHeld should be controlled by NDEBUG, not SQLITE_DEBUG

jan.nijtmans 2014-01-14 10:43 UTC branch-1.28
Commit 4699f8d9191a8cb55d32d95af85d0afcb4d2fafb
1 file changed +1 -1
+1 -1
--- src/sqlite3.c
+++ src/sqlite3.c
@@ -34186,11 +34186,11 @@
3418634186
sqlite3_mutex_enter(sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER));
3418734187
}
3418834188
static void winShmLeaveMutex(void){
3418934189
sqlite3_mutex_leave(sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER));
3419034190
}
34191
-#ifdef SQLITE_DEBUG
34191
+#ifndef NDEBUG
3419234192
static int winShmMutexHeld(void) {
3419334193
return sqlite3_mutex_held(sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER));
3419434194
}
3419534195
#endif
3419634196
3419734197
--- src/sqlite3.c
+++ src/sqlite3.c
@@ -34186,11 +34186,11 @@
34186 sqlite3_mutex_enter(sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER));
34187 }
34188 static void winShmLeaveMutex(void){
34189 sqlite3_mutex_leave(sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER));
34190 }
34191 #ifdef SQLITE_DEBUG
34192 static int winShmMutexHeld(void) {
34193 return sqlite3_mutex_held(sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER));
34194 }
34195 #endif
34196
34197
--- src/sqlite3.c
+++ src/sqlite3.c
@@ -34186,11 +34186,11 @@
34186 sqlite3_mutex_enter(sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER));
34187 }
34188 static void winShmLeaveMutex(void){
34189 sqlite3_mutex_leave(sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER));
34190 }
34191 #ifndef NDEBUG
34192 static int winShmMutexHeld(void) {
34193 return sqlite3_mutex_held(sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER));
34194 }
34195 #endif
34196
34197

Keyboard Shortcuts

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