Mercurial > vim
comparison src/os_win32.c @ 797:a1a08851eac8
updated for version 7.0232
author | vimboss |
---|---|
date | Thu, 23 Mar 2006 22:47:08 +0000 |
parents | b526e10493b1 |
children | 23f82b5d2814 |
comparison
equal
deleted
inserted
replaced
796:cc3902a09300 | 797:a1a08851eac8 |
---|---|
546 | 546 |
547 | 547 |
548 #ifdef _MSC_VER | 548 #ifdef _MSC_VER |
549 // The ToAscii bug destroys several registers. Need to turn off optimization | 549 // The ToAscii bug destroys several registers. Need to turn off optimization |
550 // or the GetConsoleKeyboardLayoutName hack will fail in non-debug versions | 550 // or the GetConsoleKeyboardLayoutName hack will fail in non-debug versions |
551 # pragma warning(push) | |
552 # pragma warning(disable: 4748) | |
551 # pragma optimize("", off) | 553 # pragma optimize("", off) |
552 #endif | 554 #endif |
553 | 555 |
554 #if defined(__GNUC__) && !defined(__MINGW32__) && !defined(__CYGWIN__) | 556 #if defined(__GNUC__) && !defined(__MINGW32__) && !defined(__CYGWIN__) |
555 # define AChar AsciiChar | 557 # define AChar AsciiChar |
617 | 619 |
618 #ifdef _MSC_VER | 620 #ifdef _MSC_VER |
619 /* MUST switch optimization on again here, otherwise a call to | 621 /* MUST switch optimization on again here, otherwise a call to |
620 * decode_key_event() may crash (e.g. when hitting caps-lock) */ | 622 * decode_key_event() may crash (e.g. when hitting caps-lock) */ |
621 # pragma optimize("", on) | 623 # pragma optimize("", on) |
624 # pragma warning(pop) | |
622 | 625 |
623 # if (_MSC_VER < 1100) | 626 # if (_MSC_VER < 1100) |
624 /* MUST turn off global optimisation for this next function, or | 627 /* MUST turn off global optimisation for this next function, or |
625 * pressing ctrl-minus in insert mode crashes Vim when built with | 628 * pressing ctrl-minus in insert mode crashes Vim when built with |
626 * VC4.1. -- negri. */ | 629 * VC4.1. -- negri. */ |