Compare commits

...

2 Commits

Author SHA1 Message Date
Yasuhiro Matsumoto d824efab06
include C code 2022-02-24 08:59:46 +09:00
Yasuhiro Matsumoto 01b1e89847
Move C code to amalgamation
Fixes #1020
2022-02-24 08:44:41 +09:00
17 changed files with 15 additions and 13 deletions

View File

@ -7,7 +7,7 @@ package sqlite3
/*
#ifndef USE_LIBSQLITE3
#include "sqlite3-binding.h"
#include "amalgamation/sqlite3-binding.h"
#else
#include <sqlite3.h>
#endif

View File

@ -12,7 +12,7 @@ package sqlite3
/*
#ifndef USE_LIBSQLITE3
#include "sqlite3-binding.h"
#include "amalgamation/sqlite3-binding.h"
#else
#include <sqlite3.h>
#endif

View File

@ -7,7 +7,7 @@ package sqlite3
/*
#ifndef USE_LIBSQLITE3
#include "sqlite3-binding.h"
#include "amalgamation/sqlite3-binding.h"
#else
#include <sqlite3.h>
#endif

View File

@ -25,7 +25,8 @@ package sqlite3
#cgo openbsd CFLAGS: -I/usr/local/include
#cgo openbsd LDFLAGS: -L/usr/local/lib
#ifndef USE_LIBSQLITE3
#include "sqlite3-binding.h"
#include "amalgamation/sqlite3-binding.h"
#include "amalgamation/sqlite3-binding.c"
#else
#include <sqlite3.h>
#endif

View File

@ -8,7 +8,7 @@ package sqlite3
/*
#ifndef USE_LIBSQLITE3
#include "sqlite3-binding.h"
#include "amalgamation/sqlite3-binding.h"
#else
#include <sqlite3.h>
#endif

View File

@ -9,7 +9,7 @@ package sqlite3
/*
#ifndef USE_LIBSQLITE3
#include "sqlite3-binding.h"
#include "amalgamation/sqlite3-binding.h"
#else
#include <sqlite3.h>
#endif

View File

@ -5,7 +5,7 @@ package sqlite3
/*
#ifndef USE_LIBSQLITE3
#cgo CFLAGS: -DSQLITE_ENABLE_COLUMN_METADATA
#include <sqlite3-binding.h>
#include "amalgamation/sqlite3-binding.h"
#else
#include <sqlite3.h>
#endif

View File

@ -13,7 +13,7 @@ package sqlite3
#cgo LDFLAGS: -lm
#ifndef USE_LIBSQLITE3
#include "sqlite3-binding.h"
#include "amalgamation/sqlite3-binding.h"
#else
#include <sqlite3.h>
#endif

View File

@ -12,7 +12,8 @@ package sqlite3
#cgo CFLAGS: -DSQLITE_ENABLE_UNLOCK_NOTIFY
#include <stdlib.h>
#include "sqlite3-binding.h"
#include "amalgamation/sqlite3-binding.h"
#include "amalgamation/sqlite3_opt_unlock_notify.c"
extern void unlock_notify_callback(void *arg, int argc);
*/

View File

@ -11,7 +11,7 @@ package sqlite3
#cgo CFLAGS: -DSQLITE_USER_AUTHENTICATION
#cgo LDFLAGS: -lm
#ifndef USE_LIBSQLITE3
#include "sqlite3-binding.h"
#include "amalgamation/sqlite3-binding.h"
#else
#include <sqlite3.h>
#endif

View File

@ -19,7 +19,7 @@ package sqlite3
#cgo CFLAGS: -Wno-deprecated-declarations
#ifndef USE_LIBSQLITE3
#include "sqlite3-binding.h"
#include "amalgamation/sqlite3-binding.h"
#else
#include <sqlite3.h>
#endif

View File

@ -9,7 +9,7 @@ package sqlite3
/*
#ifndef USE_LIBSQLITE3
#include "sqlite3-binding.h"
#include "amalgamation/sqlite3-binding.h"
#else
#include <sqlite3.h>
#endif

View File

@ -6,7 +6,7 @@ package sqlite3
/*
#ifndef USE_LIBSQLITE3
#include "sqlite3-binding.h"
#include "amalgamation/sqlite3-binding.h"
#else
#include <sqlite3.h>
#endif