diff options
Diffstat (limited to 'linenoise.c')
-rw-r--r-- | linenoise.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linenoise.c b/linenoise.c index 17000fa..2d1002d 100644 --- a/linenoise.c +++ b/linenoise.c @@ -211,7 +211,11 @@ struct current { }; /* gcc/glibc insists that we care about the return code of write! */ +#if defined(__GNUC__) && !defined(__clang__) #define IGNORE_RC(EXPR) ((EXPR) < 0 ? -1 : 0) +#else +#define IGNORE_RC(EXPR) EXPR +#endif /* This is fd_printf() on some systems, but use a different * name to avoid conflicts |