diff options
| author | Martin Hořeňovský | 2017-09-11 21:09:35 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2017-09-11 21:09:35 +0200 |
| commit | eaf850cd0c2c3322a1dddb9a2e37210db3f15df4 (patch) | |
| tree | 78e422c7f7751f9f4280ae6643d926f13c0943bd /include | |
| parent | 9aa96712aec495d5a0d580f773c292803cc662aa (diff) | |
| download | catch3-eaf850cd0c2c3322a1dddb9a2e37210db3f15df4.tar.gz | |
Do not use SEH and console api under UWP
Fixes #1020
Diffstat (limited to 'include')
| -rw-r--r-- | include/internal/catch_compiler_capabilities.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/internal/catch_compiler_capabilities.h b/include/internal/catch_compiler_capabilities.h index 18cf9e01..e7d506ed 100644 --- a/include/internal/catch_compiler_capabilities.h +++ b/include/internal/catch_compiler_capabilities.h @@ -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 |