Skip to content

Commit b04331f

Browse files
committed
try declspec
1 parent e8016bc commit b04331f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

shared.c

+6
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,17 @@ SQLITE_EXTENSION_INIT3
66
// hook to call into golang functionality defined in go.riyazali.net/sqlite
77
extern int go_sqlite3_extension_init(const char*, sqlite3*, char**);
88

9+
#ifdef _WIN32
10+
__declspec(dllexport)
11+
#endif
912
int sqlite3_http_init(sqlite3* db, char** pzErrMsg, const sqlite3_api_routines *pApi) {
1013
SQLITE_EXTENSION_INIT2(pApi)
1114
return go_sqlite3_extension_init("http", db, pzErrMsg);
1215
}
1316

17+
#ifdef _WIN32
18+
__declspec(dllexport)
19+
#endif
1420
int sqlite3_http_no_network_init(sqlite3* db, char** pzErrMsg, const sqlite3_api_routines *pApi) {
1521
SQLITE_EXTENSION_INIT2(pApi)
1622
return go_sqlite3_extension_init("http_no_network", db, pzErrMsg);

0 commit comments

Comments
 (0)