mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-06 19:14:14 +08:00
test: fix STDERR_FILENO for MSVC.
This commit is contained in:
parent
a6c8c1ad08
commit
38deb14ee4
12
test/osal.h
12
test/osal.h
@ -31,3 +31,15 @@ int osal_delay(unsigned seconds);
|
|||||||
void osal_udelay(unsigned us);
|
void osal_udelay(unsigned us);
|
||||||
void osal_yield(void);
|
void osal_yield(void);
|
||||||
bool osal_istty(int fd);
|
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 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user