mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-27 15:35:18 +00:00
No need for retry on Windows.
This commit is contained in:
parent
5bc2b533ff
commit
ed2caaf265
@ -47,10 +47,14 @@
|
|||||||
#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.
|
||||||
#define FMT_RETRY(result, expression) \
|
#ifndef _WIN32
|
||||||
|
# define FMT_RETRY(result, expression) \
|
||||||
do { \
|
do { \
|
||||||
result = (expression); \
|
result = (expression); \
|
||||||
} while (result == -1 && errno == EINTR)
|
} while (result == -1 && errno == EINTR)
|
||||||
|
#else
|
||||||
|
# define FMT_RETRY(result, expression) result = (expression)
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
Loading…
x
Reference in New Issue
Block a user