diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-20 10:21:16 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-20 10:21:16 +0000 |
commit | 583892002aafd72d3b08403e75c69cf286c48655 (patch) | |
tree | dae518e311a5219661360326c7e98bfabaa9d726 /io.c | |
parent | 1889b47414ae76b09e194ea7434547709b86111f (diff) | |
download | ruby-583892002aafd72d3b08403e75c69cf286c48655.tar.gz ruby-583892002aafd72d3b08403e75c69cf286c48655.tar.xz ruby-583892002aafd72d3b08403e75c69cf286c48655.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/branches/ruby_1_8@8813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -388,6 +388,10 @@ rb_io_wait_writable(f) } } +#ifndef S_ISREG +# define S_ISREG(m) ((m & S_IFMT) == S_IFREG) +#endif + static int wsplit_p(OpenFile *fptr) { @@ -1061,10 +1065,6 @@ rb_io_fread(ptr, len, f) return io_fread(ptr, len, &of); } -#ifndef S_ISREG -# define S_ISREG(m) ((m & S_IFMT) == S_IFREG) -#endif - #define SMALLBUF 100 static long |