Index: third_party/sqlite/src/tool/mksqlite3h.tcl |
diff --git a/third_party/sqlite/src/tool/mksqlite3h.tcl b/third_party/sqlite/src/tool/mksqlite3h.tcl |
index 554069c32398ce78ef236cc8aad23b0e48406b56..a89b9f9beb0df39ff4123108212e1072786b763f 100644 |
--- a/third_party/sqlite/src/tool/mksqlite3h.tcl |
+++ b/third_party/sqlite/src/tool/mksqlite3h.tcl |
@@ -65,9 +65,17 @@ close $in |
set varpattern {^[a-zA-Z][a-zA-Z_0-9 *]+sqlite3_[_a-zA-Z0-9]+(\[|;| =)} |
set declpattern {^ *[a-zA-Z][a-zA-Z_0-9 ]+ \**sqlite3_[_a-zA-Z0-9]+\(} |
-# Process the src/sqlite.h.in ext/rtree/sqlite3rtree.h files. |
+# Force the output to use unix line endings, even on Windows. |
+fconfigure stdout -translation lf |
+ |
+set filelist [subst { |
+ $TOP/src/sqlite.h.in |
+ $TOP/ext/rtree/sqlite3rtree.h |
+}] |
+ |
+# Process the source files. |
# |
-foreach file [list $TOP/src/sqlite.h.in $TOP/ext/rtree/sqlite3rtree.h] { |
+foreach file $filelist { |
set in [open $file] |
while {![eof $in]} { |