clean up sleep hack

This commit is contained in:
zeromus 2015-01-15 21:48:27 +00:00
parent d0aeee71dd
commit 37ee317415
1 changed files with 9 additions and 1 deletions

View File

@ -33,6 +33,14 @@
#include <math.h>
#include <string.h>
#if defined(_MSC_VER) && _MSC_VER == 1600
#define SLEEP_HACK_2011
#endif
#ifdef SLEEP_HACK_2011
#include <Windows.h>
#endif
#ifndef _MSC_VER
#include <stdint.h>
#endif
@ -962,7 +970,7 @@ public:
// hack for VC++ 2010 (bug in compiler optimization?)
// freeze on 3D
// TODO: study it
#if defined(_MSC_VER) && _MSC_VER == 1600
#ifdef SLEEP_HACK_2011
Sleep(0); // nop
#endif
}