1
0
mirror of https://github.com/janet-lang/janet synced 2025-01-28 08:04:45 +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 */ /* Build result */
struct stat st;
#ifdef JANET_WINDOWS #ifdef JANET_WINDOWS
struct _stat st;
int res = _stat(path, &st); int res = _stat(path, &st);
#else #else
struct stat st;
int res = stat(path, &st); int res = stat(path, &st);
#endif #endif
if (-1 == res) { if (-1 == res) {