mirror of
https://github.com/ruby/ruby.git
synced 2026-10-28 16:36:20 +08:00
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:
1 parent
224bb40844
commit
cb005af5ea
1 file changed
+2
-2
Notes:
git
2026-09-26 21:06:35 +00:00
@@ -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
|
||||
|
||||
Reference in new issue
Block a user