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:
parent
c074615550
commit
4a05b4556e
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user