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 <noreply@anthropic.com>
This commit is contained in:
Hiroshi SHIBATAandClaude Opus 5.5 committed 2026-09-27 06:05:59 +09:00
1 parent 224bb40844
commit cb005af5ea
1 file changed
+2 -2
Notes: git 2026-09-26 21:06:35 +00:00
+2 -2
View File
@@ -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