From a976d7c9abe3a0ab28c0728e5318b307103f4bbd Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 10 May 2015 08:31:14 -0700 Subject: build: rewrite is_ENOTSUP without an #if directive * src/system.h (is_ENOTSUP): Avoid in-function #if directive. --- src/system.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/system.h') 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); } -- cgit v1.2.3-54-g00ecf