From 3d78a08b9f3307ac3874f5c120f7d4166c62efb9 Mon Sep 17 00:00:00 2001 From: mattn Date: Wed, 10 Sep 2014 14:58:32 +0900 Subject: [PATCH] Workaround for #109, #147 --- sqlite3.go | 3 +++ sqlite3_windows.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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"