SQLite Forum

Linkage #defines are unused
Login
See tool/mksqlite3c.tcl

The full set of api annotations is not used unless you specify --apicall when running mksqlite3c.tcl.  By default, only a subset of the calling convention qualifiers are used such as SQLITE_API and SQLITE_STATIC.

This allows, for example, in the default case, the specification of -DSQLITE_API=__declspec(dllexport) when compiling sqlite3.c so that one does not need to "fiddle" with export definitions on platforms (such as Windows) that need to be told which symbols are to be exported from Discontiguous Saved Segments.