From c5e0c421d688548a0849a30dd8395a3b1bb3bcf2 Mon Sep 17 00:00:00 2001 From: Gert-Jan Timmer Date: Tue, 26 Jun 2018 16:33:03 +0200 Subject: [PATCH] Fix func.go --- driver/config.go | 4 ---- driver/func.go | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/driver/config.go b/driver/config.go index bc6e49a..1420461 100644 --- a/driver/config.go +++ b/driver/config.go @@ -25,10 +25,6 @@ package sqlite3 # define SQLITE_OPEN_FULLMUTEX 0 #endif -#ifndef SQLITE_DETERMINISTIC -# define SQLITE_DETERMINISTIC 0 -#endif - static int _sqlite3_open_v2(const char *filename, sqlite3 **ppDb, int flags, const char *zVfs) { #ifdef SQLITE_OPEN_URI diff --git a/driver/func.go b/driver/func.go index 63056b8..0d7aa71 100644 --- a/driver/func.go +++ b/driver/func.go @@ -18,6 +18,10 @@ package sqlite3 #include #include +#ifndef SQLITE_DETERMINISTIC +# define SQLITE_DETERMINISTIC 0 +#endif + void callbackTrampoline(sqlite3_context*, int, sqlite3_value**); void stepTrampoline(sqlite3_context*, int, sqlite3_value**); void doneTrampoline(sqlite3_context*);