summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/sqlite/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/sqlite/config.h')
-rw-r--r--src/3rdparty/sqlite/config.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/3rdparty/sqlite/config.h b/src/3rdparty/sqlite/config.h
new file mode 100644
index 000000000..ae29a5723
--- /dev/null
+++ b/src/3rdparty/sqlite/config.h
@@ -0,0 +1,23 @@
+#include <qglobal.h>
+#include <qconfig.h>
+
+#ifndef QT_POINTER_SIZE
+# ifdef Q_OS_WIN32
+# define QT_POINTER_SIZE 4
+# elif Q_OS_WIN64
+# define QT_POINTER_SIZE 8
+# else
+# error This platform is unsupported
+# endif
+#endif /* QT_POINTER_SIZE */
+
+#define SQLITE_PTR_SZ QT_POINTER_SIZE
+
+#ifdef UNICODE
+# undef UNICODE
+#endif
+
+#ifdef Q_CC_MSVC
+# pragma warning(disable: 4018)
+# pragma warning(disable: 4761)
+#endif