Fossil SCM
Compilation 'portability' enhancements for MinGW.
Commit
1bb6f3d34c429670df7f3770b2bfa0c25dc7872f
Parent
67cdb9b186ee858…
5 files changed
+6
-3
+3
+1
+6
-4
+5
-3
+6
-3
| --- src/makemake.tcl | ||
| +++ src/makemake.tcl | ||
| @@ -338,12 +338,12 @@ | ||
| 338 | 338 | |
| 339 | 339 | # The USE_SYSTEM_SQLITE variable may be undefined, set to 0, or set |
| 340 | 340 | # to 1. If it is set to 1, then there is no need to build or link |
| 341 | 341 | # the sqlite3.o object. Instead, the system SQLite will be linked |
| 342 | 342 | # using -lsqlite3. |
| 343 | -SQLITE3_OBJ.1 = | |
| 344 | 343 | SQLITE3_OBJ.0 = $(OBJDIR)/sqlite3.o |
| 344 | +SQLITE3_OBJ.1 = | |
| 345 | 345 | SQLITE3_OBJ. = $(SQLITE3_OBJ.0) |
| 346 | 346 | |
| 347 | 347 | # The FOSSIL_ENABLE_MINIZ variable may be undefined, set to 0, or |
| 348 | 348 | # set to 1. If it is set to 1, the miniz library included in the |
| 349 | 349 | # source tree should be used; otherwise, it should not. |
| @@ -1012,12 +1012,12 @@ | ||
| 1012 | 1012 | |
| 1013 | 1013 | # The USE_SYSTEM_SQLITE variable may be undefined, set to 0, or set |
| 1014 | 1014 | # to 1. If it is set to 1, then there is no need to build or link |
| 1015 | 1015 | # the sqlite3.o object. Instead, the system SQLite will be linked |
| 1016 | 1016 | # using -lsqlite3. |
| 1017 | -SQLITE3_OBJ.1 = | |
| 1018 | 1017 | SQLITE3_OBJ.0 = $(OBJDIR)/sqlite3.o |
| 1018 | +SQLITE3_OBJ.1 = | |
| 1019 | 1019 | SQLITE3_OBJ. = $(SQLITE3_OBJ.0) |
| 1020 | 1020 | |
| 1021 | 1021 | # The FOSSIL_ENABLE_MINIZ variable may be undefined, set to 0, or |
| 1022 | 1022 | # set to 1. If it is set to 1, the miniz library included in the |
| 1023 | 1023 | # source tree should be used; otherwise, it should not. |
| @@ -1142,16 +1142,19 @@ | ||
| 1142 | 1142 | writeln "\t\$(TRANSLATE) \$(SRCDIR)/$s.c >\$@\n" |
| 1143 | 1143 | writeln "\$(OBJDIR)/$s.o:\t\$(OBJDIR)/${s}_.c \$(OBJDIR)/$s.h$extra_h($s)\$(SRCDIR)/config.h" |
| 1144 | 1144 | writeln "\t\$(XTCC) -o \$(OBJDIR)/$s.o -c \$(OBJDIR)/${s}_.c\n" |
| 1145 | 1145 | writeln "\$(OBJDIR)/${s}.h:\t\$(OBJDIR)/headers\n" |
| 1146 | 1146 | } |
| 1147 | + | |
| 1148 | +writeln {MINGW_OPTIONS = -D_HAVE__MINGW_H | |
| 1149 | +} | |
| 1147 | 1150 | |
| 1148 | 1151 | set SQLITE_WIN32_OPTIONS $SQLITE_OPTIONS |
| 1149 | 1152 | lappend SQLITE_WIN32_OPTIONS -DSQLITE_WIN32_NO_ANSI |
| 1150 | 1153 | |
| 1151 | 1154 | set MINGW_SQLITE_OPTIONS $SQLITE_WIN32_OPTIONS |
| 1152 | -lappend MINGW_SQLITE_OPTIONS -D_HAVE__MINGW_H | |
| 1155 | +lappend MINGW_SQLITE_OPTIONS {$(MINGW_OPTIONS)} | |
| 1153 | 1156 | lappend MINGW_SQLITE_OPTIONS -DSQLITE_USE_MALLOC_H |
| 1154 | 1157 | lappend MINGW_SQLITE_OPTIONS -DSQLITE_USE_MSIZE |
| 1155 | 1158 | |
| 1156 | 1159 | set MINIZ_WIN32_OPTIONS $MINIZ_OPTIONS |
| 1157 | 1160 | |
| 1158 | 1161 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -338,12 +338,12 @@ | |
| 338 | |
| 339 | # The USE_SYSTEM_SQLITE variable may be undefined, set to 0, or set |
| 340 | # to 1. If it is set to 1, then there is no need to build or link |
| 341 | # the sqlite3.o object. Instead, the system SQLite will be linked |
| 342 | # using -lsqlite3. |
| 343 | SQLITE3_OBJ.1 = |
| 344 | SQLITE3_OBJ.0 = $(OBJDIR)/sqlite3.o |
| 345 | SQLITE3_OBJ. = $(SQLITE3_OBJ.0) |
| 346 | |
| 347 | # The FOSSIL_ENABLE_MINIZ variable may be undefined, set to 0, or |
| 348 | # set to 1. If it is set to 1, the miniz library included in the |
| 349 | # source tree should be used; otherwise, it should not. |
| @@ -1012,12 +1012,12 @@ | |
| 1012 | |
| 1013 | # The USE_SYSTEM_SQLITE variable may be undefined, set to 0, or set |
| 1014 | # to 1. If it is set to 1, then there is no need to build or link |
| 1015 | # the sqlite3.o object. Instead, the system SQLite will be linked |
| 1016 | # using -lsqlite3. |
| 1017 | SQLITE3_OBJ.1 = |
| 1018 | SQLITE3_OBJ.0 = $(OBJDIR)/sqlite3.o |
| 1019 | SQLITE3_OBJ. = $(SQLITE3_OBJ.0) |
| 1020 | |
| 1021 | # The FOSSIL_ENABLE_MINIZ variable may be undefined, set to 0, or |
| 1022 | # set to 1. If it is set to 1, the miniz library included in the |
| 1023 | # source tree should be used; otherwise, it should not. |
| @@ -1142,16 +1142,19 @@ | |
| 1142 | writeln "\t\$(TRANSLATE) \$(SRCDIR)/$s.c >\$@\n" |
| 1143 | writeln "\$(OBJDIR)/$s.o:\t\$(OBJDIR)/${s}_.c \$(OBJDIR)/$s.h$extra_h($s)\$(SRCDIR)/config.h" |
| 1144 | writeln "\t\$(XTCC) -o \$(OBJDIR)/$s.o -c \$(OBJDIR)/${s}_.c\n" |
| 1145 | writeln "\$(OBJDIR)/${s}.h:\t\$(OBJDIR)/headers\n" |
| 1146 | } |
| 1147 | |
| 1148 | set SQLITE_WIN32_OPTIONS $SQLITE_OPTIONS |
| 1149 | lappend SQLITE_WIN32_OPTIONS -DSQLITE_WIN32_NO_ANSI |
| 1150 | |
| 1151 | set MINGW_SQLITE_OPTIONS $SQLITE_WIN32_OPTIONS |
| 1152 | lappend MINGW_SQLITE_OPTIONS -D_HAVE__MINGW_H |
| 1153 | lappend MINGW_SQLITE_OPTIONS -DSQLITE_USE_MALLOC_H |
| 1154 | lappend MINGW_SQLITE_OPTIONS -DSQLITE_USE_MSIZE |
| 1155 | |
| 1156 | set MINIZ_WIN32_OPTIONS $MINIZ_OPTIONS |
| 1157 | |
| 1158 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -338,12 +338,12 @@ | |
| 338 | |
| 339 | # The USE_SYSTEM_SQLITE variable may be undefined, set to 0, or set |
| 340 | # to 1. If it is set to 1, then there is no need to build or link |
| 341 | # the sqlite3.o object. Instead, the system SQLite will be linked |
| 342 | # using -lsqlite3. |
| 343 | SQLITE3_OBJ.0 = $(OBJDIR)/sqlite3.o |
| 344 | SQLITE3_OBJ.1 = |
| 345 | SQLITE3_OBJ. = $(SQLITE3_OBJ.0) |
| 346 | |
| 347 | # The FOSSIL_ENABLE_MINIZ variable may be undefined, set to 0, or |
| 348 | # set to 1. If it is set to 1, the miniz library included in the |
| 349 | # source tree should be used; otherwise, it should not. |
| @@ -1012,12 +1012,12 @@ | |
| 1012 | |
| 1013 | # The USE_SYSTEM_SQLITE variable may be undefined, set to 0, or set |
| 1014 | # to 1. If it is set to 1, then there is no need to build or link |
| 1015 | # the sqlite3.o object. Instead, the system SQLite will be linked |
| 1016 | # using -lsqlite3. |
| 1017 | SQLITE3_OBJ.0 = $(OBJDIR)/sqlite3.o |
| 1018 | SQLITE3_OBJ.1 = |
| 1019 | SQLITE3_OBJ. = $(SQLITE3_OBJ.0) |
| 1020 | |
| 1021 | # The FOSSIL_ENABLE_MINIZ variable may be undefined, set to 0, or |
| 1022 | # set to 1. If it is set to 1, the miniz library included in the |
| 1023 | # source tree should be used; otherwise, it should not. |
| @@ -1142,16 +1142,19 @@ | |
| 1142 | writeln "\t\$(TRANSLATE) \$(SRCDIR)/$s.c >\$@\n" |
| 1143 | writeln "\$(OBJDIR)/$s.o:\t\$(OBJDIR)/${s}_.c \$(OBJDIR)/$s.h$extra_h($s)\$(SRCDIR)/config.h" |
| 1144 | writeln "\t\$(XTCC) -o \$(OBJDIR)/$s.o -c \$(OBJDIR)/${s}_.c\n" |
| 1145 | writeln "\$(OBJDIR)/${s}.h:\t\$(OBJDIR)/headers\n" |
| 1146 | } |
| 1147 | |
| 1148 | writeln {MINGW_OPTIONS = -D_HAVE__MINGW_H |
| 1149 | } |
| 1150 | |
| 1151 | set SQLITE_WIN32_OPTIONS $SQLITE_OPTIONS |
| 1152 | lappend SQLITE_WIN32_OPTIONS -DSQLITE_WIN32_NO_ANSI |
| 1153 | |
| 1154 | set MINGW_SQLITE_OPTIONS $SQLITE_WIN32_OPTIONS |
| 1155 | lappend MINGW_SQLITE_OPTIONS {$(MINGW_OPTIONS)} |
| 1156 | lappend MINGW_SQLITE_OPTIONS -DSQLITE_USE_MALLOC_H |
| 1157 | lappend MINGW_SQLITE_OPTIONS -DSQLITE_USE_MSIZE |
| 1158 | |
| 1159 | set MINIZ_WIN32_OPTIONS $MINIZ_OPTIONS |
| 1160 | |
| 1161 |
+3
| --- src/user.c | ||
| +++ src/user.c | ||
| @@ -19,10 +19,13 @@ | ||
| 19 | 19 | ** querying information about users. |
| 20 | 20 | */ |
| 21 | 21 | #include "config.h" |
| 22 | 22 | #include "user.h" |
| 23 | 23 | |
| 24 | +#if defined(_WIN32) | |
| 25 | +#include <conio.h> | |
| 26 | +#endif | |
| 24 | 27 | |
| 25 | 28 | /* |
| 26 | 29 | ** Strip leading and trailing space from a string and add the string |
| 27 | 30 | ** onto the end of a blob. |
| 28 | 31 | */ |
| 29 | 32 |
| --- src/user.c | |
| +++ src/user.c | |
| @@ -19,10 +19,13 @@ | |
| 19 | ** querying information about users. |
| 20 | */ |
| 21 | #include "config.h" |
| 22 | #include "user.h" |
| 23 | |
| 24 | |
| 25 | /* |
| 26 | ** Strip leading and trailing space from a string and add the string |
| 27 | ** onto the end of a blob. |
| 28 | */ |
| 29 |
| --- src/user.c | |
| +++ src/user.c | |
| @@ -19,10 +19,13 @@ | |
| 19 | ** querying information about users. |
| 20 | */ |
| 21 | #include "config.h" |
| 22 | #include "user.h" |
| 23 | |
| 24 | #if defined(_WIN32) |
| 25 | #include <conio.h> |
| 26 | #endif |
| 27 | |
| 28 | /* |
| 29 | ** Strip leading and trailing space from a string and add the string |
| 30 | ** onto the end of a blob. |
| 31 | */ |
| 32 |
+1
| --- src/winhttp.c | ||
| +++ src/winhttp.c | ||
| @@ -21,10 +21,11 @@ | ||
| 21 | 21 | */ |
| 22 | 22 | #include "config.h" |
| 23 | 23 | #ifdef _WIN32 |
| 24 | 24 | /* This code is for win32 only */ |
| 25 | 25 | #include <windows.h> |
| 26 | +#include <process.h> | |
| 26 | 27 | #include "winhttp.h" |
| 27 | 28 | |
| 28 | 29 | /* |
| 29 | 30 | ** The HttpRequest structure holds information about each incoming |
| 30 | 31 | ** HTTP request. |
| 31 | 32 |
| --- src/winhttp.c | |
| +++ src/winhttp.c | |
| @@ -21,10 +21,11 @@ | |
| 21 | */ |
| 22 | #include "config.h" |
| 23 | #ifdef _WIN32 |
| 24 | /* This code is for win32 only */ |
| 25 | #include <windows.h> |
| 26 | #include "winhttp.h" |
| 27 | |
| 28 | /* |
| 29 | ** The HttpRequest structure holds information about each incoming |
| 30 | ** HTTP request. |
| 31 |
| --- src/winhttp.c | |
| +++ src/winhttp.c | |
| @@ -21,10 +21,11 @@ | |
| 21 | */ |
| 22 | #include "config.h" |
| 23 | #ifdef _WIN32 |
| 24 | /* This code is for win32 only */ |
| 25 | #include <windows.h> |
| 26 | #include <process.h> |
| 27 | #include "winhttp.h" |
| 28 | |
| 29 | /* |
| 30 | ** The HttpRequest structure holds information about each incoming |
| 31 | ** HTTP request. |
| 32 |
+6
-4
| --- win/Makefile.mingw | ||
| +++ win/Makefile.mingw | ||
| @@ -921,12 +921,12 @@ | ||
| 921 | 921 | |
| 922 | 922 | # The USE_SYSTEM_SQLITE variable may be undefined, set to 0, or set |
| 923 | 923 | # to 1. If it is set to 1, then there is no need to build or link |
| 924 | 924 | # the sqlite3.o object. Instead, the system SQLite will be linked |
| 925 | 925 | # using -lsqlite3. |
| 926 | -SQLITE3_OBJ.1 = | |
| 927 | 926 | SQLITE3_OBJ.0 = $(OBJDIR)/sqlite3.o |
| 927 | +SQLITE3_OBJ.1 = | |
| 928 | 928 | SQLITE3_OBJ. = $(SQLITE3_OBJ.0) |
| 929 | 929 | |
| 930 | 930 | # The FOSSIL_ENABLE_MINIZ variable may be undefined, set to 0, or |
| 931 | 931 | # set to 1. If it is set to 1, the miniz library included in the |
| 932 | 932 | # source tree should be used; otherwise, it should not. |
| @@ -936,16 +936,16 @@ | ||
| 936 | 936 | |
| 937 | 937 | # The USE_SEE variable may be undefined, 0 or 1. If undefined or |
| 938 | 938 | # 0, ordinary SQLite is used. If 1, then sqlite3-see.c (not part of |
| 939 | 939 | # the source tree) is used and extra flags are provided to enable |
| 940 | 940 | # the SQLite Encryption Extension. |
| 941 | -SQLITE3_SRC.1 = sqlite3-see.c | |
| 942 | 941 | SQLITE3_SRC.0 = sqlite3.c |
| 942 | +SQLITE3_SRC.1 = sqlite3-see.c | |
| 943 | 943 | SQLITE3_SRC. = sqlite3.c |
| 944 | 944 | SQLITE3_SRC = $(SRCDIR)/$(SQLITE3_SRC.$(USE_SEE)) |
| 945 | -SEE_FLAGS.1 = -DSQLITE_HAS_CODEC | |
| 946 | 945 | SEE_FLAGS.0 = |
| 946 | +SEE_FLAGS.1 = -DSQLITE_HAS_CODEC | |
| 947 | 947 | SEE_FLAGS. = |
| 948 | 948 | SEE_FLAGS = $(SEE_FLAGS.$(USE_SEE)) |
| 949 | 949 | |
| 950 | 950 | |
| 951 | 951 | EXTRAOBJ = \ |
| @@ -2105,10 +2105,12 @@ | ||
| 2105 | 2105 | $(OBJDIR)/zip.o: $(OBJDIR)/zip_.c $(OBJDIR)/zip.h $(SRCDIR)/config.h |
| 2106 | 2106 | $(XTCC) -o $(OBJDIR)/zip.o -c $(OBJDIR)/zip_.c |
| 2107 | 2107 | |
| 2108 | 2108 | $(OBJDIR)/zip.h: $(OBJDIR)/headers |
| 2109 | 2109 | |
| 2110 | +MINGW_OPTIONS = -D_HAVE__MINGW_H | |
| 2111 | + | |
| 2110 | 2112 | SQLITE_OPTIONS = -DNDEBUG=1 \ |
| 2111 | 2113 | -DSQLITE_OMIT_LOAD_EXTENSION=1 \ |
| 2112 | 2114 | -DSQLITE_ENABLE_LOCKING_STYLE=0 \ |
| 2113 | 2115 | -DSQLITE_THREADSAFE=0 \ |
| 2114 | 2116 | -DSQLITE_DEFAULT_FILE_FORMAT=4 \ |
| @@ -2118,11 +2120,11 @@ | ||
| 2118 | 2120 | -DSQLITE_ENABLE_FTS3_PARENTHESIS \ |
| 2119 | 2121 | -DSQLITE_ENABLE_DBSTAT_VTAB \ |
| 2120 | 2122 | -DSQLITE_ENABLE_JSON1 \ |
| 2121 | 2123 | -DSQLITE_ENABLE_FTS5 \ |
| 2122 | 2124 | -DSQLITE_WIN32_NO_ANSI \ |
| 2123 | - -D_HAVE__MINGW_H \ | |
| 2125 | + $(MINGW_OPTIONS) \ | |
| 2124 | 2126 | -DSQLITE_USE_MALLOC_H \ |
| 2125 | 2127 | -DSQLITE_USE_MSIZE |
| 2126 | 2128 | |
| 2127 | 2129 | SHELL_OPTIONS = -Dmain=sqlite3_shell \ |
| 2128 | 2130 | -DSQLITE_SHELL_IS_UTF8=1 \ |
| 2129 | 2131 |
| --- win/Makefile.mingw | |
| +++ win/Makefile.mingw | |
| @@ -921,12 +921,12 @@ | |
| 921 | |
| 922 | # The USE_SYSTEM_SQLITE variable may be undefined, set to 0, or set |
| 923 | # to 1. If it is set to 1, then there is no need to build or link |
| 924 | # the sqlite3.o object. Instead, the system SQLite will be linked |
| 925 | # using -lsqlite3. |
| 926 | SQLITE3_OBJ.1 = |
| 927 | SQLITE3_OBJ.0 = $(OBJDIR)/sqlite3.o |
| 928 | SQLITE3_OBJ. = $(SQLITE3_OBJ.0) |
| 929 | |
| 930 | # The FOSSIL_ENABLE_MINIZ variable may be undefined, set to 0, or |
| 931 | # set to 1. If it is set to 1, the miniz library included in the |
| 932 | # source tree should be used; otherwise, it should not. |
| @@ -936,16 +936,16 @@ | |
| 936 | |
| 937 | # The USE_SEE variable may be undefined, 0 or 1. If undefined or |
| 938 | # 0, ordinary SQLite is used. If 1, then sqlite3-see.c (not part of |
| 939 | # the source tree) is used and extra flags are provided to enable |
| 940 | # the SQLite Encryption Extension. |
| 941 | SQLITE3_SRC.1 = sqlite3-see.c |
| 942 | SQLITE3_SRC.0 = sqlite3.c |
| 943 | SQLITE3_SRC. = sqlite3.c |
| 944 | SQLITE3_SRC = $(SRCDIR)/$(SQLITE3_SRC.$(USE_SEE)) |
| 945 | SEE_FLAGS.1 = -DSQLITE_HAS_CODEC |
| 946 | SEE_FLAGS.0 = |
| 947 | SEE_FLAGS. = |
| 948 | SEE_FLAGS = $(SEE_FLAGS.$(USE_SEE)) |
| 949 | |
| 950 | |
| 951 | EXTRAOBJ = \ |
| @@ -2105,10 +2105,12 @@ | |
| 2105 | $(OBJDIR)/zip.o: $(OBJDIR)/zip_.c $(OBJDIR)/zip.h $(SRCDIR)/config.h |
| 2106 | $(XTCC) -o $(OBJDIR)/zip.o -c $(OBJDIR)/zip_.c |
| 2107 | |
| 2108 | $(OBJDIR)/zip.h: $(OBJDIR)/headers |
| 2109 | |
| 2110 | SQLITE_OPTIONS = -DNDEBUG=1 \ |
| 2111 | -DSQLITE_OMIT_LOAD_EXTENSION=1 \ |
| 2112 | -DSQLITE_ENABLE_LOCKING_STYLE=0 \ |
| 2113 | -DSQLITE_THREADSAFE=0 \ |
| 2114 | -DSQLITE_DEFAULT_FILE_FORMAT=4 \ |
| @@ -2118,11 +2120,11 @@ | |
| 2118 | -DSQLITE_ENABLE_FTS3_PARENTHESIS \ |
| 2119 | -DSQLITE_ENABLE_DBSTAT_VTAB \ |
| 2120 | -DSQLITE_ENABLE_JSON1 \ |
| 2121 | -DSQLITE_ENABLE_FTS5 \ |
| 2122 | -DSQLITE_WIN32_NO_ANSI \ |
| 2123 | -D_HAVE__MINGW_H \ |
| 2124 | -DSQLITE_USE_MALLOC_H \ |
| 2125 | -DSQLITE_USE_MSIZE |
| 2126 | |
| 2127 | SHELL_OPTIONS = -Dmain=sqlite3_shell \ |
| 2128 | -DSQLITE_SHELL_IS_UTF8=1 \ |
| 2129 |
| --- win/Makefile.mingw | |
| +++ win/Makefile.mingw | |
| @@ -921,12 +921,12 @@ | |
| 921 | |
| 922 | # The USE_SYSTEM_SQLITE variable may be undefined, set to 0, or set |
| 923 | # to 1. If it is set to 1, then there is no need to build or link |
| 924 | # the sqlite3.o object. Instead, the system SQLite will be linked |
| 925 | # using -lsqlite3. |
| 926 | SQLITE3_OBJ.0 = $(OBJDIR)/sqlite3.o |
| 927 | SQLITE3_OBJ.1 = |
| 928 | SQLITE3_OBJ. = $(SQLITE3_OBJ.0) |
| 929 | |
| 930 | # The FOSSIL_ENABLE_MINIZ variable may be undefined, set to 0, or |
| 931 | # set to 1. If it is set to 1, the miniz library included in the |
| 932 | # source tree should be used; otherwise, it should not. |
| @@ -936,16 +936,16 @@ | |
| 936 | |
| 937 | # The USE_SEE variable may be undefined, 0 or 1. If undefined or |
| 938 | # 0, ordinary SQLite is used. If 1, then sqlite3-see.c (not part of |
| 939 | # the source tree) is used and extra flags are provided to enable |
| 940 | # the SQLite Encryption Extension. |
| 941 | SQLITE3_SRC.0 = sqlite3.c |
| 942 | SQLITE3_SRC.1 = sqlite3-see.c |
| 943 | SQLITE3_SRC. = sqlite3.c |
| 944 | SQLITE3_SRC = $(SRCDIR)/$(SQLITE3_SRC.$(USE_SEE)) |
| 945 | SEE_FLAGS.0 = |
| 946 | SEE_FLAGS.1 = -DSQLITE_HAS_CODEC |
| 947 | SEE_FLAGS. = |
| 948 | SEE_FLAGS = $(SEE_FLAGS.$(USE_SEE)) |
| 949 | |
| 950 | |
| 951 | EXTRAOBJ = \ |
| @@ -2105,10 +2105,12 @@ | |
| 2105 | $(OBJDIR)/zip.o: $(OBJDIR)/zip_.c $(OBJDIR)/zip.h $(SRCDIR)/config.h |
| 2106 | $(XTCC) -o $(OBJDIR)/zip.o -c $(OBJDIR)/zip_.c |
| 2107 | |
| 2108 | $(OBJDIR)/zip.h: $(OBJDIR)/headers |
| 2109 | |
| 2110 | MINGW_OPTIONS = -D_HAVE__MINGW_H |
| 2111 | |
| 2112 | SQLITE_OPTIONS = -DNDEBUG=1 \ |
| 2113 | -DSQLITE_OMIT_LOAD_EXTENSION=1 \ |
| 2114 | -DSQLITE_ENABLE_LOCKING_STYLE=0 \ |
| 2115 | -DSQLITE_THREADSAFE=0 \ |
| 2116 | -DSQLITE_DEFAULT_FILE_FORMAT=4 \ |
| @@ -2118,11 +2120,11 @@ | |
| 2120 | -DSQLITE_ENABLE_FTS3_PARENTHESIS \ |
| 2121 | -DSQLITE_ENABLE_DBSTAT_VTAB \ |
| 2122 | -DSQLITE_ENABLE_JSON1 \ |
| 2123 | -DSQLITE_ENABLE_FTS5 \ |
| 2124 | -DSQLITE_WIN32_NO_ANSI \ |
| 2125 | $(MINGW_OPTIONS) \ |
| 2126 | -DSQLITE_USE_MALLOC_H \ |
| 2127 | -DSQLITE_USE_MSIZE |
| 2128 | |
| 2129 | SHELL_OPTIONS = -Dmain=sqlite3_shell \ |
| 2130 | -DSQLITE_SHELL_IS_UTF8=1 \ |
| 2131 |
+5
-3
| --- win/Makefile.mingw.mistachkin | ||
| +++ win/Makefile.mingw.mistachkin | ||
| @@ -921,12 +921,12 @@ | ||
| 921 | 921 | |
| 922 | 922 | # The USE_SYSTEM_SQLITE variable may be undefined, set to 0, or set |
| 923 | 923 | # to 1. If it is set to 1, then there is no need to build or link |
| 924 | 924 | # the sqlite3.o object. Instead, the system SQLite will be linked |
| 925 | 925 | # using -lsqlite3. |
| 926 | -SQLITE3_OBJ.1 = | |
| 927 | 926 | SQLITE3_OBJ.0 = $(OBJDIR)/sqlite3.o |
| 927 | +SQLITE3_OBJ.1 = | |
| 928 | 928 | SQLITE3_OBJ. = $(SQLITE3_OBJ.0) |
| 929 | 929 | |
| 930 | 930 | # The FOSSIL_ENABLE_MINIZ variable may be undefined, set to 0, or |
| 931 | 931 | # set to 1. If it is set to 1, the miniz library included in the |
| 932 | 932 | # source tree should be used; otherwise, it should not. |
| @@ -936,16 +936,16 @@ | ||
| 936 | 936 | |
| 937 | 937 | # The USE_SEE variable may be undefined, 0 or 1. If undefined or |
| 938 | 938 | # 0, ordinary SQLite is used. If 1, then sqlite3-see.c (not part of |
| 939 | 939 | # the source tree) is used and extra flags are provided to enable |
| 940 | 940 | # the SQLite Encryption Extension. |
| 941 | -SQLITE3_SRC.1 = sqlite3-see.c | |
| 942 | 941 | SQLITE3_SRC.0 = sqlite3.c |
| 942 | +SQLITE3_SRC.1 = sqlite3-see.c | |
| 943 | 943 | SQLITE3_SRC. = sqlite3.c |
| 944 | 944 | SQLITE3_SRC = $(SRCDIR)/$(SQLITE3_SRC.$(USE_SEE)) |
| 945 | -SEE_FLAGS.1 = -DSQLITE_HAS_CODEC | |
| 946 | 945 | SEE_FLAGS.0 = |
| 946 | +SEE_FLAGS.1 = -DSQLITE_HAS_CODEC | |
| 947 | 947 | SEE_FLAGS. = |
| 948 | 948 | SEE_FLAGS = $(SEE_FLAGS.$(USE_SEE)) |
| 949 | 949 | |
| 950 | 950 | |
| 951 | 951 | EXTRAOBJ = \ |
| @@ -2104,10 +2104,12 @@ | ||
| 2104 | 2104 | |
| 2105 | 2105 | $(OBJDIR)/zip.o: $(OBJDIR)/zip_.c $(OBJDIR)/zip.h $(SRCDIR)/config.h |
| 2106 | 2106 | $(XTCC) -o $(OBJDIR)/zip.o -c $(OBJDIR)/zip_.c |
| 2107 | 2107 | |
| 2108 | 2108 | $(OBJDIR)/zip.h: $(OBJDIR)/headers |
| 2109 | + | |
| 2110 | +MINGW_OPTIONS = -D_HAVE__MINGW_H | |
| 2109 | 2111 | |
| 2110 | 2112 | SQLITE_OPTIONS = -DNDEBUG=1 \ |
| 2111 | 2113 | -DSQLITE_OMIT_LOAD_EXTENSION=1 \ |
| 2112 | 2114 | -DSQLITE_ENABLE_LOCKING_STYLE=0 \ |
| 2113 | 2115 | -DSQLITE_THREADSAFE=0 \ |
| 2114 | 2116 |
| --- win/Makefile.mingw.mistachkin | |
| +++ win/Makefile.mingw.mistachkin | |
| @@ -921,12 +921,12 @@ | |
| 921 | |
| 922 | # The USE_SYSTEM_SQLITE variable may be undefined, set to 0, or set |
| 923 | # to 1. If it is set to 1, then there is no need to build or link |
| 924 | # the sqlite3.o object. Instead, the system SQLite will be linked |
| 925 | # using -lsqlite3. |
| 926 | SQLITE3_OBJ.1 = |
| 927 | SQLITE3_OBJ.0 = $(OBJDIR)/sqlite3.o |
| 928 | SQLITE3_OBJ. = $(SQLITE3_OBJ.0) |
| 929 | |
| 930 | # The FOSSIL_ENABLE_MINIZ variable may be undefined, set to 0, or |
| 931 | # set to 1. If it is set to 1, the miniz library included in the |
| 932 | # source tree should be used; otherwise, it should not. |
| @@ -936,16 +936,16 @@ | |
| 936 | |
| 937 | # The USE_SEE variable may be undefined, 0 or 1. If undefined or |
| 938 | # 0, ordinary SQLite is used. If 1, then sqlite3-see.c (not part of |
| 939 | # the source tree) is used and extra flags are provided to enable |
| 940 | # the SQLite Encryption Extension. |
| 941 | SQLITE3_SRC.1 = sqlite3-see.c |
| 942 | SQLITE3_SRC.0 = sqlite3.c |
| 943 | SQLITE3_SRC. = sqlite3.c |
| 944 | SQLITE3_SRC = $(SRCDIR)/$(SQLITE3_SRC.$(USE_SEE)) |
| 945 | SEE_FLAGS.1 = -DSQLITE_HAS_CODEC |
| 946 | SEE_FLAGS.0 = |
| 947 | SEE_FLAGS. = |
| 948 | SEE_FLAGS = $(SEE_FLAGS.$(USE_SEE)) |
| 949 | |
| 950 | |
| 951 | EXTRAOBJ = \ |
| @@ -2104,10 +2104,12 @@ | |
| 2104 | |
| 2105 | $(OBJDIR)/zip.o: $(OBJDIR)/zip_.c $(OBJDIR)/zip.h $(SRCDIR)/config.h |
| 2106 | $(XTCC) -o $(OBJDIR)/zip.o -c $(OBJDIR)/zip_.c |
| 2107 | |
| 2108 | $(OBJDIR)/zip.h: $(OBJDIR)/headers |
| 2109 | |
| 2110 | SQLITE_OPTIONS = -DNDEBUG=1 \ |
| 2111 | -DSQLITE_OMIT_LOAD_EXTENSION=1 \ |
| 2112 | -DSQLITE_ENABLE_LOCKING_STYLE=0 \ |
| 2113 | -DSQLITE_THREADSAFE=0 \ |
| 2114 |
| --- win/Makefile.mingw.mistachkin | |
| +++ win/Makefile.mingw.mistachkin | |
| @@ -921,12 +921,12 @@ | |
| 921 | |
| 922 | # The USE_SYSTEM_SQLITE variable may be undefined, set to 0, or set |
| 923 | # to 1. If it is set to 1, then there is no need to build or link |
| 924 | # the sqlite3.o object. Instead, the system SQLite will be linked |
| 925 | # using -lsqlite3. |
| 926 | SQLITE3_OBJ.0 = $(OBJDIR)/sqlite3.o |
| 927 | SQLITE3_OBJ.1 = |
| 928 | SQLITE3_OBJ. = $(SQLITE3_OBJ.0) |
| 929 | |
| 930 | # The FOSSIL_ENABLE_MINIZ variable may be undefined, set to 0, or |
| 931 | # set to 1. If it is set to 1, the miniz library included in the |
| 932 | # source tree should be used; otherwise, it should not. |
| @@ -936,16 +936,16 @@ | |
| 936 | |
| 937 | # The USE_SEE variable may be undefined, 0 or 1. If undefined or |
| 938 | # 0, ordinary SQLite is used. If 1, then sqlite3-see.c (not part of |
| 939 | # the source tree) is used and extra flags are provided to enable |
| 940 | # the SQLite Encryption Extension. |
| 941 | SQLITE3_SRC.0 = sqlite3.c |
| 942 | SQLITE3_SRC.1 = sqlite3-see.c |
| 943 | SQLITE3_SRC. = sqlite3.c |
| 944 | SQLITE3_SRC = $(SRCDIR)/$(SQLITE3_SRC.$(USE_SEE)) |
| 945 | SEE_FLAGS.0 = |
| 946 | SEE_FLAGS.1 = -DSQLITE_HAS_CODEC |
| 947 | SEE_FLAGS. = |
| 948 | SEE_FLAGS = $(SEE_FLAGS.$(USE_SEE)) |
| 949 | |
| 950 | |
| 951 | EXTRAOBJ = \ |
| @@ -2104,10 +2104,12 @@ | |
| 2104 | |
| 2105 | $(OBJDIR)/zip.o: $(OBJDIR)/zip_.c $(OBJDIR)/zip.h $(SRCDIR)/config.h |
| 2106 | $(XTCC) -o $(OBJDIR)/zip.o -c $(OBJDIR)/zip_.c |
| 2107 | |
| 2108 | $(OBJDIR)/zip.h: $(OBJDIR)/headers |
| 2109 | |
| 2110 | MINGW_OPTIONS = -D_HAVE__MINGW_H |
| 2111 | |
| 2112 | SQLITE_OPTIONS = -DNDEBUG=1 \ |
| 2113 | -DSQLITE_OMIT_LOAD_EXTENSION=1 \ |
| 2114 | -DSQLITE_ENABLE_LOCKING_STYLE=0 \ |
| 2115 | -DSQLITE_THREADSAFE=0 \ |
| 2116 |