Skip to content

Commit e581975

Browse files
committed
Should affect on only 386
1 parent c1aa7ac commit e581975

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

Diff for: sqlite3.go

-7
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@ package sqlite3
1010
#include <stdlib.h>
1111
#include <string.h>
1212
13-
#ifdef _WIN32
14-
#include <time.h>
15-
struct tm* _localtime32(const __time32_t *tm) {
16-
return localtime(tm);
17-
}
18-
#endif
19-
2013
#ifdef __CYGWIN__
2114
# include <errno.h>
2215
#endif

Diff for: sqlite3_windows.go

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ package sqlite3
77

88
/*
99
#cgo CFLAGS: -I. -fno-stack-check -fno-stack-protector -mno-stack-arg-probe
10+
#cgo windows,386 CFLAGS: -D_localtime32=localtime
1011
#cgo LDFLAGS: -lmingwex -lmingw32
1112
#cgo CFLAGS: -DSQLITE_ENABLE_RTREE -DSQLITE_THREADSAFE
1213
*/

0 commit comments

Comments
 (0)