diff options
author | dan <dan@noemail.net> | 2015-04-22 09:40:35 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2015-04-22 09:40:35 +0000 |
commit | 062c267dffc17aeea9e41c8a553bc7f20a949e04 (patch) | |
tree | 8b0be371e782c9cb20665994bb92c2ec48d27924 /src/main.c | |
parent | 5bb97c2b801248ab08b37b99926962f7db5c0e09 (diff) | |
parent | 318d38cf7e16d0f47dc982c33e80792e06a6fff6 (diff) | |
download | sqlite-062c267dffc17aeea9e41c8a553bc7f20a949e04.tar.gz sqlite-062c267dffc17aeea9e41c8a553bc7f20a949e04.zip |
Update this branch with latest trunk changes.
FossilOrigin-Name: 9797482ded7de985e3b20aedec5e4d81f55065c8
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 0bf413f1a..704bb38cb 100644 --- a/src/main.c +++ b/src/main.c @@ -65,7 +65,7 @@ int sqlite3_threadsafe(void){ return SQLITE_THREADSAFE; } ** I/O active are written using this function. These messages ** are intended for debugging activity only. */ -/* not-private */ void (*sqlite3IoTrace)(const char*, ...) = 0; +SQLITE_API void (SQLITE_CDECL *sqlite3IoTrace)(const char*, ...) = 0; #endif /* @@ -131,6 +131,11 @@ int sqlite3_initialize(void){ } #endif + /* If the following assert() fails on some obscure processor/compiler + ** combination, the work-around is to set the correct pointer + ** size at compile-time using -DSQLITE_PTRSIZE=n compile-time option */ + assert( SQLITE_PTRSIZE==sizeof(char*) ); + /* If SQLite is already completely initialized, then this call ** to sqlite3_initialize() should be a no-op. But the initialization ** must be complete. So isInit must not be set until the very end |