From 8a5578cf1a055823550a70c91ff4e8386f12e371 Mon Sep 17 00:00:00 2001 From: uema2 Date: Sun, 15 Dec 2002 03:18:08 +0000 Subject: * 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: http://svn.ruby-lang.org/repos/ruby/trunk@3148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- process.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'process.c') diff --git a/process.c b/process.c index 31b6926c0..0052846ca 100644 --- a/process.c +++ b/process.c @@ -42,7 +42,7 @@ struct timeval rb_time_interval _((VALUE)); #include #endif -#if defined(HAVE_TIMES) || defined(NT) || defined(_WIN32_WCE) +#if defined(HAVE_TIMES) || defined(_WIN32) static VALUE S_Tms; #endif @@ -74,7 +74,7 @@ get_pid() static VALUE get_ppid() { -#if defined(NT) || defined(_WIN32_WCE) +#ifdef _WIN32 return INT2FIX(0); #else return INT2FIX(getppid()); @@ -712,7 +712,7 @@ static VALUE rb_f_fork(obj) VALUE obj; { -#if !defined(__human68k__) && !defined(NT) && !defined(__MACOS__) && !defined(__EMX__) && !defined(__VMS) && !defined(_WIN32_WCE) +#if !defined(__human68k__) && !defined(_WIN32) && !defined(__MACOS__) && !defined(__EMX__) && !defined(__VMS) int pid; rb_secure(2); @@ -805,7 +805,7 @@ rb_f_system(argc, argv) int argc; VALUE *argv; { -#if defined(NT) || defined(__EMX__) || defined(_WIN32_WCE) +#if defined(_WIN32) || defined(__EMX__) VALUE cmd; int status; @@ -1295,7 +1295,7 @@ Init_process() rb_mProcess = rb_define_module("Process"); -#if !defined(NT) && !defined(DJGPP) && !defined(_WIN32_WCE) +#if !defined(_WIN32) && !defined(DJGPP) #ifdef WNOHANG rb_define_const(rb_mProcess, "WNOHANG", INT2FIX(WNOHANG)); #else @@ -1371,7 +1371,7 @@ Init_process() rb_define_module_function(rb_mProcess, "times", rb_proc_times, 0); -#if defined(HAVE_TIMES) || defined(NT) || defined(_WIN32_WCE) +#if defined(HAVE_TIMES) || defined(_WIN32) S_Tms = rb_struct_define("Tms", "utime", "stime", "cutime", "cstime", 0); #endif } -- cgit