Do not use SEH and console api under UWP

Fixes #1020
This commit is contained in:
Martin Hořeňovský 2017-09-11 21:09:35 +02:00
parent 9aa96712ae
commit eaf850cd0c
1 changed files with 7 additions and 1 deletions

View File

@ -80,7 +80,13 @@
// Visual C++
#ifdef _MSC_VER
#define CATCH_INTERNAL_CONFIG_WINDOWS_SEH
// Universal Windows platform does not support SEH
// Or console colours (or console at all...)
# if (WINAPI_FAMILY == WINAPI_FAMILY_APP)
# define CATCH_CONFIG_COLOUR_NONE
# else
# define CATCH_INTERNAL_CONFIG_WINDOWS_SEH
# endif
#endif // _MSC_VER