aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index a2177fd79..043f3e14d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -60,8 +60,7 @@ int sqlite3_threadsafe(void){ return SQLITE_THREADSAFE; }
** this variable being set to non-zero will cause OSTRACE macros to emit
** extra diagnostic information.
*/
-#if (defined(SQLITE_DEBUG) && SQLITE_OS_WIN) || \
- (defined(SQLITE_TEST) || defined(SQLITE_FORCE_OS_TRACE))
+#ifdef SQLITE_HAVE_OS_TRACE
# ifndef SQLITE_DEBUG_OS_TRACE
# define SQLITE_DEBUG_OS_TRACE 0
# endif
@@ -1207,8 +1206,7 @@ void sqlite3RollbackAll(sqlite3 *db, int tripCode){
** Return a static string containing the name corresponding to the error code
** specified in the argument.
*/
-#if (defined(SQLITE_DEBUG) && SQLITE_OS_WIN) || \
- (defined(SQLITE_TEST) || defined(SQLITE_FORCE_OS_TRACE))
+#ifdef SQLITE_HAVE_OS_TRACE
const char *sqlite3ErrName(int rc){
const char *zName = 0;
int i, origRc = rc;