diff options
Diffstat (limited to 'internal/file.h')
-rw-r--r-- | internal/file.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/file.h b/internal/file.h index 0bbf50f296..ac65ddad3c 100644 --- a/internal/file.h +++ b/internal/file.h @@ -9,15 +9,15 @@ * modify this file, provided that the conditions mentioned in the * file COPYING are met. Consult the file for details. */ +#include "ruby/ruby.h" /* for VALUE */ +#include "ruby/encoding.h" /* for rb_encodinng */ /* file.c */ extern const char ruby_null_device[]; VALUE rb_home_dir_of(VALUE user, VALUE result); VALUE rb_default_home_dir(VALUE result); VALUE rb_realpath_internal(VALUE basedir, VALUE path, int strict); -#ifdef RUBY_ENCODING_H VALUE rb_check_realpath(VALUE basedir, VALUE path, rb_encoding *origenc); -#endif void rb_file_const(const char*, VALUE); int rb_file_load_ok(const char *); VALUE rb_file_expand_path_fast(VALUE, VALUE); @@ -28,7 +28,7 @@ int ruby_is_fd_loadable(int fd); RUBY_SYMBOL_EXPORT_BEGIN /* file.c (export) */ -#if defined HAVE_READLINK && defined RUBY_ENCODING_H +#ifdef HAVE_READLINK VALUE rb_readlink(VALUE path, rb_encoding *enc); #endif #ifdef __APPLE__ |