Another way is create own modified version with this code.#include <stdio.h>
#include <string.h>
/*
SQLITE_API SQLITE_EXTERN const char sqlite3_version[];
SQLITE_API sqlite3_int64 sqlite3_last_insert_rowid(sqlite3*);
SQLITE_API void sqlite3_interrupt(sqlite3*);
SQLITE_API SQLITE_EXTERN char *sqlite3_temp_directory;
*/
int main(int argc, char **argv)
{
FILE *fi, *fo;
char buf[4096], tmp[4096];
int iCmt = 0;
fi = fopen("sqlite3.h", "r");
fo = fopen("sqlite3c.h", "w");
while(fgets(buf, sizeof(buf), fi)) {
if (!iCmt && buf[0] == '/' && buf[1] == '*') iCmt = 1;
if (!strncmp(buf, "SQLITE_API", 10)) {
char *p;
int nlen = strlen(buf);
if (buf[nlen-3] == ']' || buf[11] == 'S') {
fputs(buf, fo);
continue;
}
p = strstr(buf, "sqlite3_");
nlen = (int)p-(int)buf;
if (nlen < 12)
p = strstr(p+1, "sqlite3_");
nlen = (int)p-(int)buf;
strncpy(tmp, buf, nlen);
tmp[nlen] = 0;
strcat(tmp, "__cdecl ");
strcat(tmp, p);
fputs(tmp, fo);
} else
if (!iCmt) fputs(buf, fo);
if (iCmt && buf[0] == '*' && buf[1] == '/') iCmt = 0;
}
fclose(fi);
fclose(fo);
return 0;
}
callbacks are not supported with this code.