1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-25 22:53:16 +00:00

Fix MSVC build warning.

This commit is contained in:
Calvin Rose 2020-03-14 12:02:31 -05:00
parent c074615550
commit 4a05b4556e

View File

@ -929,10 +929,11 @@ static Janet os_stat(int32_t argc, Janet *argv) {
}
/* Build result */
struct stat st;
#ifdef JANET_WINDOWS
struct _stat st;
int res = _stat(path, &st);
#else
struct stat st;
int res = stat(path, &st);
#endif
if (-1 == res) {