Update time.c

miss __MINGW32__ macro check
Merge pull request #2170 from windwiny/patch-1

Update time.c