diff options
author | uema2 <uema2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-15 03:18:08 +0000 |
---|---|---|
committer | uema2 <uema2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-15 03:18:08 +0000 |
commit | b19e36a214a864572baee3643ddb369cfeb94d77 (patch) | |
tree | 5bd7fecbef75dd74f4810cda212bf989f43a95a3 /io.c | |
parent | c476b6e05c1cae6de5d24b823e676566ae27de6c (diff) |
* configure.in, defines.h, dir.c, dir.h, dln.c, error.c,
eval.c, file.c, hash.c, io.c, main.c, missing.c,
process.c, ruby.c, rubysig.h, signal.c, st.c, util.c, util.h,
bcc/Makefile.sub, win32/Makefile.sub, win32/win32.h,
ext/Win32API/Win32API.c, ext/socket/getaddrinfo.c,
ext/socket/getnameinfo.c, ext/socket/socket.c,
ext/tcltklib/stubs.c
: replace "NT" with "_WIN32", add DOSISH_DRIVE_LETTER
* wince/exe.mak : delete \r at the end of lines.
* wince/mswince-ruby17.def : delete rb_obj_become
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -24,11 +24,11 @@ #include <ctype.h> #include <errno.h> -#if defined(MSDOS) || defined(__BOW__) || defined(__CYGWIN__) || defined(NT) || defined(__human68k__) || defined(__EMX__) || defined(__BEOS__) || defined(_WIN32_WCE) +#if defined(MSDOS) || defined(__BOW__) || defined(__CYGWIN__) || defined(_WIN32) || defined(__human68k__) || defined(__EMX__) || defined(__BEOS__) # define NO_SAFE_RENAME #endif -#if defined(MSDOS) || defined(__CYGWIN__) || defined(NT) +#if defined(MSDOS) || defined(__CYGWIN__) || defined(_WIN32) # define NO_LONG_FNAME #endif @@ -41,10 +41,10 @@ #endif #include <sys/types.h> -#if !defined(DJGPP) && !defined(NT) && !defined(__human68k__) && !defined(_WIN32_WCE) +#if !defined(DJGPP) && !defined(_WIN32) && !defined(__human68k__) #include <sys/ioctl.h> #endif -#if defined(HAVE_FCNTL_H) || defined(NT) || defined(_WIN32_WCE) +#if defined(HAVE_FCNTL_H) || defined(_WIN32) #include <fcntl.h> #elif defined(HAVE_SYS_FCNTL_H) #include <sys/fcntl.h> @@ -1561,7 +1561,7 @@ VALUE rb_io_binmode(io) VALUE io; { -#if defined(NT) || defined(DJGPP) || defined(__CYGWIN__) || defined(__human68k__) || defined(__EMX__) || defined(_WIN32_WCE) +#if defined(_WIN32) || defined(DJGPP) || defined(__CYGWIN__) || defined(__human68k__) || defined(__EMX__) OpenFile *fptr; GetOpenFile(io, fptr); @@ -1850,7 +1850,7 @@ rb_file_sysopen(fname, flags, mode) return rb_file_sysopen_internal(io, fname, flags, mode); } -#if defined (NT) || defined(DJGPP) || defined(__CYGWIN__) || defined(__human68k__) || defined(__VMS) || defined(_WIN32_WCE) +#if defined (_WIN32) || defined(DJGPP) || defined(__CYGWIN__) || defined(__human68k__) || defined(__VMS) static struct pipe_list { OpenFile *fptr; struct pipe_list *next; @@ -1892,7 +1892,7 @@ pipe_del_fptr(fptr) } } -#if defined (NT) || defined(DJGPP) || defined(__CYGWIN__) || defined(__human68k__) || defined(__VMS) || defined(_WIN32_WCE) +#if defined (_WIN32) || defined(DJGPP) || defined(__CYGWIN__) || defined(__human68k__) || defined(__VMS) static void pipe_atexit _((void)) { @@ -1913,7 +1913,7 @@ static void pipe_finalize(fptr) OpenFile *fptr; { -#if !defined (__CYGWIN__) && !defined(NT) && !defined(_WIN32_WCE) +#if !defined (__CYGWIN__) && !defined(_WIN32) extern VALUE rb_last_status; int status; if (fptr->f) { @@ -1976,7 +1976,7 @@ pipe_open(pname, mode) return (VALUE)port; } #else -#if defined(NT) || defined(_WIN32_WCE) +#ifdef _WIN32 int pid; FILE *fpr, *fpw; @@ -3494,7 +3494,7 @@ rb_io_s_pipe() int pipes[2]; VALUE r, w; -#if defined(NT) || defined(_WIN32_WCE) +#ifdef _WIN32 if (_pipe(pipes, 1024, O_BINARY) == -1) #else if (pipe(pipes) == -1) @@ -4054,7 +4054,7 @@ Init_IO() rb_define_virtual_variable("$-i", opt_i_get, opt_i_set); -#if defined (NT) || defined(DJGPP) || defined(__CYGWIN__) || defined(__human68k__) +#if defined (_WIN32) || defined(DJGPP) || defined(__CYGWIN__) || defined(__human68k__) atexit(pipe_atexit); #endif |