SQLite Forum

Explicitly specifying the function calling convention in the public functions
Login
Would it be possible to allow explicit specification of the function calling convention in the header file?

The precompiled binaries available on the website seem to have `cdecl` functions. The  function definitions in the public header file do not specify a function calling convention. This means linking to this dll requires using `cdecl` as the default calling convention. At the company I work at, we use `stdcall` as the default calling convention, which means it's not possible to link against the precompiled dll easily.

So basically something that looks like this:

```c++
#ifndef CALLING_CONVENTION
#define CALLING_CONVENTION __cdecl
#endif

...
void CALLING_CONVENTION sqlite3_free(void*);
...
```