summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2015-05-10 08:31:14 -0700
committerJim Meyering <meyering@fb.com>2015-05-10 08:34:16 -0700
commita976d7c9abe3a0ab28c0728e5318b307103f4bbd (patch)
tree0e9332c3a00f422f4ffd79f8013b265bc52697d7
parentaa7f31fc4a3f4d0c99086660d5ff008c559d657b (diff)
downloadcoreutils-a976d7c9abe3a0ab28c0728e5318b307103f4bbd.tar.xz
build: rewrite is_ENOTSUP without an #if directive
* src/system.h (is_ENOTSUP): Avoid in-function #if directive.
-rw-r--r--src/system.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/system.h b/src/system.h
index 0e25bc414..8a9b47907 100644
--- a/src/system.h
+++ b/src/system.h
@@ -703,9 +703,5 @@ static inline char * se_const (char const * sctx) { return (char *) sctx; }
static inline bool
is_ENOTSUP (int err)
{
- return err == EOPNOTSUPP
-#if ENOTSUP != EOPNOTSUPP
- || err == ENOTSUP
-#endif
- ;
+ return err == EOPNOTSUPP || (ENOTSUP != EOPNOTSUPP && err == ENOTSUP);
}