aboutsummaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-07-14 14:03:34 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-07-14 18:35:23 +0900
commited3d8f74ec2eee43d50f9826e2f11ceea279823e (patch)
tree822f5fdf68dee2c701838e54ebd8632fdb78caa7 /util.c
parentc227ae7e646dc41829507238b0f6b3803e92a47a (diff)
downloadruby-ed3d8f74ec2eee43d50f9826e2f11ceea279823e.tar.gz
Delete a macro that has never been used, probably added by mistake
Diffstat (limited to 'util.c')
-rw-r--r--util.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/util.c b/util.c
index 74f2d11b94..3d0c61a743 100644
--- a/util.c
+++ b/util.c
@@ -208,13 +208,6 @@ ruby_strtoul(const char *str, char **endptr, int base)
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
-#if defined(HAVE_FCNTL_H)
-#include <fcntl.h>
-#endif
-
-#ifndef S_ISDIR
-# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
-#endif
typedef int (cmpfunc_t)(const void*, const void*, void*);