From cba6eaee486f22a1b0f3208b145673ed951cb840 Mon Sep 17 00:00:00 2001 From: mattn Date: Thu, 15 Jul 2021 22:31:14 +0900 Subject: Update amalgamation code (#955) * Update amalgamation code * Apply realPy's patch --- upgrade/upgrade.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'upgrade/upgrade.go') diff --git a/upgrade/upgrade.go b/upgrade/upgrade.go index 8801130..50d7d9c 100644 --- a/upgrade/upgrade.go +++ b/upgrade/upgrade.go @@ -153,7 +153,11 @@ func main() { for scanner.Scan() { text := scanner.Text() if text == `#include "sqlite3.h"` { - text = `#include "sqlite3-binding.h"` + text = `#include "sqlite3-binding.h" +#ifdef __clang__ +#define assert(condition) ((void)0) +#endif +` } _, err = fmt.Fprintln(f, text) if err != nil { -- cgit v1.2.3