201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
|
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
|
-
-
+
-
-
-
-
+
|
all at once, or each preprocessed source file can be compiled into a
separate object code file and the resulting object code files linked
together in a final step.
Some files require special C-preprocessor macro definitions.
When compiling sqlite.c, the following macros are recommended:
* -Dlocaltime=fossil_localtime
* -DSQLITE_OMIT_LOAD_EXTENSION=1
* -DSQLITE_ENABLE_LOCKING_STYLE=0
* -DSQLITE_THREADSAFE=0
* -DSQLITE_DEFAULT_FILE_FORMAT=4
The first and second symbol definitions above are required; the others
The first symbol definition above is required; the others
are merely recommended. The "localtime()" library function in SQLite must
be redefined to invoke fossil_localtime() instead. The fossil_localtime()
routine will invoke either gmtime() or localtime() depending on the
"Use UTC" setting for the fossil repository. Extension loading is omitted
are merely recommended. Extension loading is omitted
as a security measure. Fossil is single-threaded so mutexing is disabled
in SQLite as a performance enhancement.
When compiling the shell.c source file, these macros are required:
* -Dmain=sqlite3_main
* -DSQLITE_OMIT_LOAD_EXTENSION=1
|