aboutsummaryrefslogtreecommitdiff
path: root/ext/misc/totype.c
diff options
context:
space:
mode:
authormistachkin <mistachkin@noemail.net>2013-10-15 10:43:04 +0000
committermistachkin <mistachkin@noemail.net>2013-10-15 10:43:04 +0000
commitbc863b50baf65148059824b69e0731579a083d58 (patch)
tree26f62b6678cbee227d6f5fd21a223577f80bb7a2 /ext/misc/totype.c
parent0593516fcc04cbe285a44f69b95a853c5dc90a06 (diff)
downloadsqlite-bc863b50baf65148059824b69e0731579a083d58.tar.gz
sqlite-bc863b50baf65148059824b69e0731579a083d58.zip
Fix harmless macro redefinition warnings in the totype extension.
FossilOrigin-Name: a38adeb7ffd77474754b66877d60717cdb3cb865
Diffstat (limited to 'ext/misc/totype.c')
-rw-r--r--ext/misc/totype.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/ext/misc/totype.c b/ext/misc/totype.c
index bb4acb267..5dc99f3d7 100644
--- a/ext/misc/totype.c
+++ b/ext/misc/totype.c
@@ -56,8 +56,13 @@ SQLITE_EXTENSION_INIT1
** These macros are designed to work correctly on both 32-bit and 64-bit
** compilers.
*/
-#define LARGEST_INT64 (0xffffffff|(((sqlite3_int64)0x7fffffff)<<32))
-#define SMALLEST_INT64 (((sqlite3_int64)-1) - LARGEST_INT64)
+#ifndef LARGEST_INT64
+# define LARGEST_INT64 (0xffffffff|(((sqlite3_int64)0x7fffffff)<<32))
+#endif
+
+#ifndef SMALLEST_INT64
+# define SMALLEST_INT64 (((sqlite3_int64)-1) - LARGEST_INT64)
+#endif
/*
** Return TRUE if character c is a whitespace character