From d23d055d47f4a3bea79759346ab3aa3a787cc428 Mon Sep 17 00:00:00 2001 From: usa Date: Fri, 24 Feb 2006 02:22:33 +0000 Subject: * time.c (time_new_internal): add prototype to tell the compiler arugments types. * win32/win32.c (NtInitialize): need to set a handler for VC++8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/win32.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'win32/win32.c') diff --git a/win32/win32.c b/win32/win32.c index 5bc1f5b245..f51e93e30a 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -354,6 +354,13 @@ flock(int fd, int oper) (DWORD)-1); } +#if _MSC_VER >= 1400 +static void invalid_parameter(const wchar_t *expr, const wchar_t *func, const wchar_t *file, unsigned int line, uintptr_t dummy) +{ + // nothing to do +} +#endif + // // Initialization stuff // @@ -364,6 +371,10 @@ NtInitialize(int *argc, char ***argv) WORD version; int ret; +#if _MSC_VER >= 1400 + _set_invalid_parameter_handler(invalid_parameter); +#endif + // // subvert cmd.exe's feeble attempt at command line parsing // -- cgit v1.2.3