Fixed compilation.

The __try and __except are not available in mingw.
This commit is contained in:
Deve 2016-01-08 20:48:39 +01:00
parent 2da5efd983
commit 87d474bd1a

View File

@ -38,14 +38,14 @@
#if defined(WIN32) && defined(DEBUG) #if defined(WIN32) && defined(DEBUG)
# define WIN32_LEAN_AND_MEAN # define WIN32_LEAN_AND_MEAN
# include <Windows.h> # include <windows.h>
#endif #endif
namespace VS namespace VS
{ {
#if defined(WIN32) && defined(DEBUG) #if defined(_MSC_VER) && defined(DEBUG)
# define WIN32_LEAN_AND_MEAN # define WIN32_LEAN_AND_MEAN
# include <Windows.h> # include <windows.h>
/** This function sets the name of this thread in the VS debugger. /** This function sets the name of this thread in the VS debugger.
* \param name Name of the thread. * \param name Name of the thread.