From cb005af5ea61c8ea215877c6b951fe0c72fe2fdb Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 25 Sep 2026 16:27:34 +0900 Subject: [PATCH] Remove the redundant _WIN32 check in rb_group_member Neither mswin nor mingw defines HAVE_GETGROUPS, so the remaining condition already covers Windows. Co-Authored-By: Claude Opus 5.5 --- file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/file.c b/file.c index 833c63e965d..600cffcea0a 100644 --- a/file.c +++ b/file.c @@ -1710,7 +1710,7 @@ rb_file_lstat(VALUE obj) static int rb_group_member(GETGROUPS_T gid) { -#if defined(_WIN32) || !defined(HAVE_GETGROUPS) +#if !defined(HAVE_GETGROUPS) return FALSE; #else int rv = FALSE; @@ -1735,7 +1735,7 @@ rb_group_member(GETGROUPS_T gid) ALLOCV_END(v); return rv; -#endif /* defined(_WIN32) || !defined(HAVE_GETGROUPS) */ +#endif /* !defined(HAVE_GETGROUPS) */ } #ifndef S_IXUGO