Skip to content

Commit

Permalink
Update script tool/mksqlite3c.tcl to avoid duplicating the SQLITE_API
Browse files Browse the repository at this point in the history
qualifier when copying sqlite3rbu.h into the amalgamation.
  • Loading branch information
danielk-1977 committed Aug 4, 2017
1 parent 3373ef5 commit 5b01d5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tool/mksqlite3c.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ proc copy_file {filename} {
if {![info exists varonly_hdr($tail)]
&& [regexp $declpattern $line all rettype funcname rest]} {
regsub {^SQLITE_API } $line {} line
regsub {^SQLITE_API } $rettype {} rettype

# Add the SQLITE_PRIVATE or SQLITE_API keyword before functions.
# so that linkage can be modified at compile-time.
if {[regexp {^sqlite3[a-z]*_} $funcname]} {
Expand Down

0 comments on commit 5b01d5a

Please sign in to comment.