mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-23 12:31:08 -06:00
Silence SQLITE_HAS_CODEC Redefinition Warnings
During compiling of source, compiler will issue numerous warnings stating that `SQLITE_HAS_CODEC` is being redefined. Commit resolves this warning by placing a ifndef pragma around declaration in header
This commit is contained in:
16
src/sqlite.h
16
src/sqlite.h
@@ -3,12 +3,14 @@
|
||||
|
||||
#ifdef ENABLE_SQLCIPHER
|
||||
#define SQLITE_TEMP_STORE 2
|
||||
#define SQLITE_HAS_CODEC
|
||||
#ifdef Q_OS_WIN32
|
||||
#include <sqlite3.h>
|
||||
#else
|
||||
#include <sqlcipher/sqlite3.h>
|
||||
#endif
|
||||
#ifndef SQLITE_HAS_CODEC
|
||||
#define SQLITE_HAS_CODEC
|
||||
#endif
|
||||
#ifdef Q_OS_WIN32
|
||||
#include <sqlite3.h>
|
||||
#else
|
||||
#include <sqlcipher/sqlite3.h>
|
||||
#endif
|
||||
#else
|
||||
#include <sqlite3.h>
|
||||
#endif
|
||||
@@ -17,7 +19,7 @@
|
||||
// yet (which introduced in this commit: https://www.sqlite.org/src/info/5716fc2341ddd8cf), we
|
||||
// define it here with a value of 0. Because it is ORed with other constants a value of 0 is a no-op.
|
||||
#ifndef SQLITE_DETERMINISTIC
|
||||
#define SQLITE_DETERMINISTIC 0
|
||||
#define SQLITE_DETERMINISTIC 0
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user