We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1aa7ac commit e581975Copy full SHA for e581975
sqlite3.go
@@ -10,13 +10,6 @@ package sqlite3
10
#include <stdlib.h>
11
#include <string.h>
12
13
-#ifdef _WIN32
14
-#include <time.h>
15
-struct tm* _localtime32(const __time32_t *tm) {
16
- return localtime(tm);
17
-}
18
-#endif
19
-
20
#ifdef __CYGWIN__
21
# include <errno.h>
22
#endif
sqlite3_windows.go
@@ -7,6 +7,7 @@ package sqlite3
7
8
/*
9
#cgo CFLAGS: -I. -fno-stack-check -fno-stack-protector -mno-stack-arg-probe
+#cgo windows,386 CFLAGS: -D_localtime32=localtime
#cgo LDFLAGS: -lmingwex -lmingw32
#cgo CFLAGS: -DSQLITE_ENABLE_RTREE -DSQLITE_THREADSAFE
*/
0 commit comments