summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-02-24 02:22:33 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-02-24 02:22:33 +0000
commitd23d055d47f4a3bea79759346ab3aa3a787cc428 (patch)
tree136e94db38dc7b7f59be297682e154378f2f6500 /win32
parent8e5e386b7af732d2eeab15d96957d7419ef8a619 (diff)
* 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
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c11
1 files changed, 11 insertions, 0 deletions
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
//