]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: rewrite is_ENOTSUP without an #if directive
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 10 May 2015 15:31:14 +0000 (08:31 -0700)
committerJim Meyering <meyering@fb.com>
Sun, 10 May 2015 15:34:16 +0000 (08:34 -0700)
* src/system.h (is_ENOTSUP): Avoid in-function #if directive.

src/system.h

index 0e25bc414b3f4775b5369b86e0e091dc5fd16d8c..8a9b47907d4cc5e51b5984fe9f723ec2ad9b3aec 100644 (file)
@@ -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);
 }