diff options
author | mattn <mattn.jp@gmail.com> | 2021-07-15 22:31:14 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-15 22:31:14 +0900 |
commit | cba6eaee486f22a1b0f3208b145673ed951cb840 (patch) | |
tree | 430dd141b1d1f8e7be17f5d2048286fdaac5e496 /upgrade/upgrade.go | |
parent | Update amalgamation code (#940) (diff) | |
download | golite-cba6eaee486f22a1b0f3208b145673ed951cb840.tar.gz golite-cba6eaee486f22a1b0f3208b145673ed951cb840.tar.xz |
Update amalgamation code (#955)
* Update amalgamation code
* Apply realPy's patch
Diffstat (limited to 'upgrade/upgrade.go')
-rw-r--r-- | upgrade/upgrade.go | 6 |
1 files changed, 5 insertions, 1 deletions
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 { |