Should affect on only 386

systemlib
mattn 2014-10-24 19:38:05 +09:00
parent c1aa7ac706
commit e5819757da
2 changed files with 1 additions and 7 deletions

View File

@ -10,13 +10,6 @@ package sqlite3
#include <stdlib.h>
#include <string.h>
#ifdef _WIN32
#include <time.h>
struct tm* _localtime32(const __time32_t *tm) {
return localtime(tm);
}
#endif
#ifdef __CYGWIN__
# include <errno.h>
#endif

View File

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