test: fix STDERR_FILENO for MSVC.

This commit is contained in:
Leo Yuriev 2017-05-24 02:43:43 +03:00
parent a6c8c1ad08
commit 38deb14ee4

View File

@ -31,3 +31,15 @@ int osal_delay(unsigned seconds);
void osal_udelay(unsigned us);
void osal_yield(void);
bool osal_istty(int fd);
#ifdef _MSC_VER
#ifndef STDIN_FILENO
#define STDIN_FILENO _fileno(stdin)
#endif
#ifndef STDOUT_FILENO
#define STDOUT_FILENO _fileno(stdout)
#endif
#ifndef STDERR_FILENO
#define STDERR_FILENO _fileno(stderr)
#endif
#endif /* _MSC_VER */