1
0
Fork 0

Fix the build for systems without a system wide sqlite lubrary

This commit is contained in:
Erik Hofman 2023-01-23 15:35:24 +01:00
parent f492f9bf6e
commit 484f1da20e

View file

@ -1,6 +1,5 @@
#include <cstdlib>
#include <cstring>
#include <sqlite3.h>
#include <string>
@ -9,6 +8,12 @@
#include <simgear/structure/exception.hxx>
#include <simgear/debug/logstream.hxx>
#ifdef SYSTEM_SQLITE
#include "sqlite3.h"
#else
#include "fg_sqlite3.h"
#endif
// Ghost types
struct DBGhost { sqlite3* db; };
struct StmtGhost { sqlite3_stmt* stmt; };