diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/os_common.h | 2 | ||||
-rw-r--r-- | src/printf.c | 2 | ||||
-rw-r--r-- | src/sqliteInt.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/os_common.h b/src/os_common.h index 837f94714..24b00f668 100644 --- a/src/os_common.h +++ b/src/os_common.h @@ -38,8 +38,8 @@ # define OSTRACE(X) if( sqlite3OSTrace ) sqlite3DebugPrintf X # define SQLITE_HAVE_OS_TRACE #else -# undef SQLITE_HAVE_OS_TRACE # define OSTRACE(X) +# undef SQLITE_HAVE_OS_TRACE #endif /* diff --git a/src/printf.c b/src/printf.c index 1a978dc5c..d4063174a 100644 --- a/src/printf.c +++ b/src/printf.c @@ -1059,7 +1059,7 @@ void sqlite3_log(int iErrCode, const char *zFormat, ...){ } } -#if defined(SQLITE_DEBUG) +#if defined(SQLITE_DEBUG) || defined(SQLITE_HAVE_OS_TRACE) /* ** A version of printf() that understands %lld. Used for debugging. ** The printf() built into some versions of windows does not understand %lld diff --git a/src/sqliteInt.h b/src/sqliteInt.h index e22da91e5..769b2afe8 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -3146,7 +3146,7 @@ void sqlite3XPrintf(StrAccum*, u32, const char*, ...); char *sqlite3MPrintf(sqlite3*,const char*, ...); char *sqlite3VMPrintf(sqlite3*,const char*, va_list); char *sqlite3MAppendf(sqlite3*,char*,const char*,...); -#if defined(SQLITE_TEST) || defined(SQLITE_DEBUG) +#if defined(SQLITE_DEBUG) || defined(SQLITE_HAVE_OS_TRACE) void sqlite3DebugPrintf(const char*, ...); #endif #if defined(SQLITE_TEST) |