From e5819757da0824da7e9140b1a862cafecf88159c Mon Sep 17 00:00:00 2001 From: mattn Date: Fri, 24 Oct 2014 19:38:05 +0900 Subject: [PATCH] Should affect on only 386 --- sqlite3.go | 7 ------- sqlite3_windows.go | 1 + 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/sqlite3.go b/sqlite3.go index db6bdf7..257d64f 100644 --- a/sqlite3.go +++ b/sqlite3.go @@ -10,13 +10,6 @@ package sqlite3 #include #include -#ifdef _WIN32 -#include -struct tm* _localtime32(const __time32_t *tm) { - return localtime(tm); -} -#endif - #ifdef __CYGWIN__ # include #endif diff --git a/sqlite3_windows.go b/sqlite3_windows.go index 1b339a0..84eb457 100644 --- a/sqlite3_windows.go +++ b/sqlite3_windows.go @@ -7,6 +7,7 @@ package sqlite3 /* #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 */