mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 09:28:21 +00:00
Define ssize_t on Windows.
This commit is contained in:
parent
e648d289bb
commit
90a3f0a620
@ -42,6 +42,10 @@
|
|||||||
# define O_TRUNC _O_TRUNC
|
# define O_TRUNC _O_TRUNC
|
||||||
# define S_IRUSR _S_IREAD
|
# define S_IRUSR _S_IREAD
|
||||||
# define S_IWUSR _S_IWRITE
|
# define S_IWUSR _S_IWRITE
|
||||||
|
|
||||||
|
// The read function is defined as returning int on Windows.
|
||||||
|
typedef int ssize_t;
|
||||||
|
|
||||||
#endif // _WIN32
|
#endif // _WIN32
|
||||||
|
|
||||||
// Retries the expression while it evaluates to -1 and error equals to EINTR.
|
// Retries the expression while it evaluates to -1 and error equals to EINTR.
|
||||||
|
Loading…
Reference in New Issue
Block a user