summaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-20 10:21:16 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-20 10:21:16 +0000
commit9322d6609422324b03f19a94716f820741e2a25e (patch)
treebd76023b54012be9f2e2165396fe9393789069fe /io.c
parente4c6d90a0fb0961726617717b80ea68b9176cca8 (diff)
downloadruby-9322d6609422324b03f19a94716f820741e2a25e.tar.gz
ruby-9322d6609422324b03f19a94716f820741e2a25e.tar.xz
ruby-9322d6609422324b03f19a94716f820741e2a25e.zip
* io.c (S_ISREG): need to define S_ISREG before it is used first.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/io.c b/io.c
index b0518c1b7..e128a1b8c 100644
--- a/io.c
+++ b/io.c
@@ -372,6 +372,10 @@ io_alloc(klass)
return (VALUE)io;
}
+#ifndef S_ISREG
+# define S_ISREG(m) ((m & S_IFMT) == S_IFREG)
+#endif
+
static int
wsplit_p(OpenFile *fptr)
{
@@ -1181,10 +1185,6 @@ rb_io_fread(ptr, len, f)
return n;
}
-#ifndef S_ISREG
-# define S_ISREG(m) ((m & S_IFMT) == S_IFREG)
-#endif
-
#define SMALLBUF 100
static long