diff --git a/sqlite3.go b/sqlite3.go index 8757a75..94ebce3 100644 --- a/sqlite3.go +++ b/sqlite3.go @@ -6,6 +6,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 269c05a..9c47124 100644 --- a/sqlite3_windows.go +++ b/sqlite3_windows.go @@ -7,7 +7,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"