Skip to content

Commit 5a34bf9

Browse files
committed
Apply realPy's patch
1 parent cbde843 commit 5a34bf9

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

sqlite3ext.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
#ifndef SQLITE3EXT_H
2020
#define SQLITE3EXT_H
2121
#include "sqlite3-binding.h"
22+
#ifdef __clang__
23+
#define assert(condition) ((void)0)
24+
#endif
25+
2226

2327
/*
2428
** The following structure holds pointers to all of the SQLite API

upgrade/upgrade.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,11 @@ func main() {
153153
for scanner.Scan() {
154154
text := scanner.Text()
155155
if text == `#include "sqlite3.h"` {
156-
text = `#include "sqlite3-binding.h"`
156+
text = `#include "sqlite3-binding.h"
157+
#ifdef __clang__
158+
#define assert(condition) ((void)0)
159+
#endif
160+
`
157161
}
158162
_, err = fmt.Fprintln(f, text)
159163
if err != nil {

0 commit comments

Comments
 (0)