a few more MSVC++ tweaks for improved compatibility and fewer warnings

This commit is contained in:
Axel Kohlmeyer
2021-10-06 16:13:12 -04:00
parent 4260d31b85
commit 50d997526c
3 changed files with 6 additions and 4 deletions

View File

@ -619,7 +619,7 @@ bool platform::is_console(FILE *fp)
{
if (!fp) return false;
#if defined(_WIN32)
return (_isatty(fileno(fp)) == 1);
return (_isatty(_fileno(fp)) == 1);
#else
return (isatty(fileno(fp)) == 1);
#endif