C tweaks.

This commit is contained in:
Nuno Cruces
2025-01-17 10:51:25 +00:00
parent aa8287f8e7
commit c024121fd2
6 changed files with 20 additions and 13 deletions

View File

@@ -1,5 +1,6 @@
#include <unistd.h>
// Use the default call back, not the Go one we patched in.
#define sqliteBusyCallback sqliteDefaultBusyCallback
// Amalgamation
@@ -9,8 +10,10 @@
__attribute__((constructor)) void init() { sqlite3_initialize(); }
// Ignore these.
#define sqlite3_enable_load_extension(...)
#define sqlite3_trace(...)
#define unlink(...) (0)
#undef UNUSED_PARAMETER
#include "mptest.c"

View File

@@ -1,3 +1,4 @@
// Use the default call back, not the Go one we patched in.
#define sqliteBusyCallback sqliteDefaultBusyCallback
// Amalgamation
@@ -5,5 +6,7 @@
// VFS
#include "vfs.c"
#define randomFunc randomFunc2
// Can't have two functions with the same name.
#define randomFunc randomFuncRepeatable
#include "speedtest1.c"