diff options
| author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-02-24 02:19:44 +0000 |
|---|---|---|
| committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-02-24 02:19:44 +0000 |
| commit | 68312a954e078c885b7e1a48084d1f07fc9ab238 (patch) | |
| tree | 76ab9c10508653852cdabc9261eb7b82bd2625d1 | |
| parent | efdb959216d387bb43eb9fea1d1706fc38ee3bec (diff) | |
| download | ruby-68312a954e078c885b7e1a48084d1f07fc9ab238.tar.gz ruby-68312a954e078c885b7e1a48084d1f07fc9ab238.tar.xz ruby-68312a954e078c885b7e1a48084d1f07fc9ab238.zip | |
* win32/win32.c (NtInitialize): need to set a handler for VC++8.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | win32/win32.c | 11 |
2 files changed, 15 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Fri Feb 24 11:17:45 2006 NAKAMURA Usaku <usa@ruby-lang.org> + + * win32/win32.c (NtInitialize): need to set a handler for VC++8. + Thu Feb 23 22:39:59 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp> * bcc32/Makefile.sub: use borlndmm.dll if possible. bcc32's RTL internal diff --git a/win32/win32.c b/win32/win32.c index 973a795c4..3494461f3 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -410,6 +410,13 @@ init_env(void) static void init_stdhandle(void); +#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 // @@ -420,6 +427,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 // |
