summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/dir.c b/dir.c
index 74f8a98a89..55c675f216 100644
--- a/dir.c
+++ b/dir.c
@@ -474,14 +474,15 @@ dir_path(VALUE dir)
* d.read #=> ".."
* d.read #=> "config.h"
*/
+static VALUE
+dir_read(VALUE dir)
+{
#ifdef _WIN32
# define READDIR(dir, enc) rb_w32_readdir_with_enc(dir, enc)
#else
# define READDIR(dir, enc) readdir(dir)
#endif
-static VALUE
-dir_read(VALUE dir)
-{
+
struct dir_data *dirp;
struct dirent *dp;