The issue also impacts Visual Studio 2010

This commit is contained in:
Yann Collet 2017-10-02 00:45:28 -07:00
parent 6e7ba3df2f
commit ed7ae4c9bd

View File

@ -149,8 +149,8 @@ const char* g_artefact = NULL;
void INThandler(int sig)
{
assert(sig==SIGINT); (void)sig;
#if !(defined(_MSC_VER) && (_MSC_VER <= 1500 /* visual studio 2008 */))
signal(sig, SIG_IGN); /* this invocation generates a buggy warning in Visual Studio 2008 */
#if !(defined(_MSC_VER) && (_MSC_VER <= 1600 /* visual studio 2010 */))
signal(sig, SIG_IGN); /* this invocation generates a buggy warning in Visual Studio up to 2010 */
#endif
if (g_artefact) remove(g_artefact);
DISPLAY("\n");