1
0
forked from aniani/vim

patch 8.1.2323: Old MSVC version no longer tested.

Problem:    Old MSVC version no longer tested.
Solution:   Drop support for MSCV 2008 and older. (Ken Takata, closes #5248)
This commit is contained in:
Bram Moolenaar
2019-11-19 23:01:28 +01:00
parent ffc4fb8fee
commit a075490082
5 changed files with 62 additions and 98 deletions

View File

@@ -921,14 +921,6 @@ static const struct
};
#ifdef _MSC_VER
// The ToAscii bug destroys several registers. Need to turn off optimization
// or the GetConsoleKeyboardLayoutName hack will fail in non-debug versions
# pragma warning(push)
# pragma warning(disable: 4748)
# pragma optimize("", off)
#endif
#if defined(__GNUC__) && !defined(__MINGW32__) && !defined(__CYGWIN__)
# define UChar UnicodeChar
#else
@@ -981,20 +973,6 @@ win32_kbd_patch_key(
return s_iIsDead;
}
#ifdef _MSC_VER
/* MUST switch optimization on again here, otherwise a call to
* decode_key_event() may crash (e.g. when hitting caps-lock) */
# pragma optimize("", on)
# pragma warning(pop)
# if (_MSC_VER < 1100)
/* MUST turn off global optimisation for this next function, or
* pressing ctrl-minus in insert mode crashes Vim when built with
* VC4.1. -- negri. */
# pragma optimize("g", off)
# endif
#endif
static BOOL g_fJustGotFocus = FALSE;
/*
@@ -1120,10 +1098,6 @@ decode_key_event(
return (*pch != NUL);
}
#ifdef _MSC_VER
# pragma optimize("", on)
#endif
#endif /* FEAT_GUI_MSWIN */