SQLite Forum

Linkage #defines are unused
Login
Thanks, Keith!

That makes sense. Could/should the following defines be omitted from the amalgamation output when --apicall is not passed to mksqlite3c.tcl?

* SQLITE_CALLBACK
* SQLITE_SYSAPI
* SQLITE_APICALL
* SQLITE_STDCALL

Otherwise, would the comment at the top saying that these defines can be used to override linkage be technically incorrect, at least with respect to the final amalgamation file produced?

For SQLITE_STDCALL specifically, as far as I can tell, it looks like that one is no longer in use - compared to where it used to be in the [commit](https://github.com/sqlite/sqlite/commit/d69e5579400f93b27771324c08ad2c784371e995#diff-46262510279d071299462453bec166c33f04ec678224a5149c0420872f23e2f5R118) where it was first added, its use has now apparently been replaced entirely by [SQLITE_APICALL](https://github.com/sqlite/sqlite/blob/master/tool/mksqlite3c.tcl#L254). Is SQLITE_STDCALL vestigial now?

Thanks,

David