aboutsummaryrefslogtreecommitdiff
path: root/ext/rtree/rtree.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/rtree/rtree.c')
-rw-r--r--ext/rtree/rtree.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/ext/rtree/rtree.c b/ext/rtree/rtree.c
index 78849bd55..ea5e737aa 100644
--- a/ext/rtree/rtree.c
+++ b/ext/rtree/rtree.c
@@ -63,10 +63,6 @@
#include "sqlite3.h"
#endif
-#include <string.h>
-#include <assert.h>
-#include <stdio.h>
-
#ifndef SQLITE_AMALGAMATION
#include "sqlite3rtree.h"
typedef sqlite3_int64 i64;
@@ -74,7 +70,17 @@ typedef sqlite3_uint64 u64;
typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned int u32;
+#if !defined(NDEBUG) && !defined(SQLITE_DEBUG)
+# define NDEBUG 1
+#endif
+#if defined(NDEBUG) && defined(SQLITE_DEBUG)
+# undef NDEBUG
#endif
+#endif
+
+#include <string.h>
+#include <stdio.h>
+#include <assert.h>
/* The following macro is used to suppress compiler warnings.
*/