From: "U.Nakamura" Date: 2001-05-11T22:20:50+09:00 Subject: [ruby-dev:13167] [PATCH] ruby 1.6 compile warning on mswin32 こんにちは、なかむら(う)です。 ずっと忘れてましたが、1.6でVC++でのコンパイル時に出る 警告を消すためのパッチです。 1.7では既に入れられているものです。 Index: process.c =================================================================== RCS file: /src/ruby/process.c,v retrieving revision 1.24 diff -u -2 -p -r1.24 process.c --- process.c 2000/12/25 06:29:07 1.24 +++ process.c 2001/05/11 13:16:56 @@ -235,5 +235,7 @@ proc_waitpid2(argc, argv) } +#ifndef HAVE_STRING_H char *strtok(); +#endif #ifdef HAVE_SETITIMER Index: sprintf.c =================================================================== RCS file: /src/ruby/sprintf.c,v retrieving revision 1.11.2.1 diff -u -2 -p -r1.11.2.1 sprintf.c --- sprintf.c 2001/01/15 07:33:12 1.11.2.1 +++ sprintf.c 2001/05/11 13:16:56 @@ -19,5 +19,5 @@ #define BIT_DIGITS(N) (((N)*146)/485 + 1) /* log2(10) =~ 146/485 */ -#ifndef atof +#if !defined(atof) && !defined(HAVE_STDLIB_H) double strtod(); #endif それでは。 -- U.Nakamura