Commit ed2caaf2 authored by Victor Zverovich's avatar Victor Zverovich

No need for retry on Windows.

parent 5bc2b533
...@@ -47,10 +47,14 @@ ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment