Fix sqlite3_opt_unlock_notify with USE_LIBSQLITE3 (#1262)

A valid sqlite header must always be included (like in the other
files) but sqlite3-binding.h explicitly guards against the system
library case.
This commit is contained in:
nina 2024-12-09 05:36:34 +01:00 committed by GitHub
parent c61eeb5d1d
commit 7658c06970
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -5,7 +5,11 @@
#ifdef SQLITE_ENABLE_UNLOCK_NOTIFY #ifdef SQLITE_ENABLE_UNLOCK_NOTIFY
#include <stdio.h> #include <stdio.h>
#ifndef USE_LIBSQLITE3
#include "sqlite3-binding.h" #include "sqlite3-binding.h"
#else
#include <sqlite3.h>
#endif
extern int unlock_notify_wait(sqlite3 *db); extern int unlock_notify_wait(sqlite3 *db);

View File

@ -12,7 +12,11 @@ package sqlite3
#cgo CFLAGS: -DSQLITE_ENABLE_UNLOCK_NOTIFY #cgo CFLAGS: -DSQLITE_ENABLE_UNLOCK_NOTIFY
#include <stdlib.h> #include <stdlib.h>
#ifndef USE_LIBSQLITE3
#include "sqlite3-binding.h" #include "sqlite3-binding.h"
#else
#include <sqlite3.h>
#endif
extern void unlock_notify_callback(void *arg, int argc); extern void unlock_notify_callback(void *arg, int argc);
*/ */