mirror of
https://github.com/janet-lang/janet
synced 2025-01-14 09:25:41 +00:00
Fix MSVC build warning.
This commit is contained in:
parent
c074615550
commit
4a05b4556e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user