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 */