From c7bdb0d8b8d4228f4d796777dc6815a3c6162635 Mon Sep 17 00:00:00 2001 From: usa Date: Wed, 20 Jul 2005 10:21:16 +0000 Subject: [PATCH] * io.c (S_ISREG): need to define S_ISREG before it is used first. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ io.c | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4b5fc2c5a7..00b793b0ae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Jul 20 19:18:52 2005 NAKAMURA Usaku + + * io.c (S_ISREG): need to define S_ISREG before it is used first. + Wed Jul 20 18:33:15 2005 Hirokazu Yamamoto * io.c (wsplit_p): patch for the environment where diff --git a/io.c b/io.c index b0518c1b71..e128a1b8c1 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