diff --git a/sqlite3.go b/sqlite3.go index f133897..5191a62 100644 --- a/sqlite3.go +++ b/sqlite3.go @@ -1,6 +1,9 @@ package sqlite3 /* +#ifdef _WIN32 +# define _localtime32(x) localtime(x) +#endif #include #include #include diff --git a/sqlite3_windows.go b/sqlite3_windows.go index e4ebc24..7a52826 100644 --- a/sqlite3_windows.go +++ b/sqlite3_windows.go @@ -2,7 +2,7 @@ package sqlite3 /* #cgo CFLAGS: -I. -fno-stack-check -fno-stack-protector -mno-stack-arg-probe -#cgo LDFLAGS: -lmingwex -lmingw32 -lmsvcr100 +#cgo LDFLAGS: -lmingwex -lmingw32 #cgo CFLAGS: -DSQLITE_ENABLE_RTREE */ import "C"