commit | a26992ee89acf4011871e6dec00e00ee91b5fbbe | [log] [tgz] |
---|---|---|
author | Steve Lhomme <robux4@ycbcr.xyz> | Wed Apr 22 09:29:43 2020 +0200 |
committer | Liu Hao <lh_mouse@126.com> | Wed Apr 22 23:04:33 2020 +0800 |
tree | 531cb6305bee331c8e03496e34b059891583f241 | |
parent | 86ae33ecde1d668281a9e189d85c3af7157f23ea [diff] |
headers: add SetUnhandledExceptionFilter to winstore builds https://docs.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-setunhandledexceptionfilter https://docs.microsoft.com/en-us/uwp/win32-and-com/win32-apis#apis-from-api-ms-win-core-errorhandling-l1-1-3dll UnhandledExceptionFilter is *not* supported. Signed-off-by: Liu Hao <lh_mouse@126.com>
diff --git a/mingw-w64-headers/include/errhandlingapi.h b/mingw-w64-headers/include/errhandlingapi.h index 79257b2..806f7c9 100644 --- a/mingw-w64-headers/include/errhandlingapi.h +++ b/mingw-w64-headers/include/errhandlingapi.h
@@ -13,10 +13,12 @@ extern "C" { #endif -#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) || defined(WINSTORECOMPAT) +#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_APP) typedef LONG (WINAPI *PTOP_LEVEL_EXCEPTION_FILTER) (struct _EXCEPTION_POINTERS *ExceptionInfo); typedef PTOP_LEVEL_EXCEPTION_FILTER LPTOP_LEVEL_EXCEPTION_FILTER; WINBASEAPI LPTOP_LEVEL_EXCEPTION_FILTER WINAPI SetUnhandledExceptionFilter (LPTOP_LEVEL_EXCEPTION_FILTER lpTopLevelExceptionFilter); +#endif /* WINAPI_PARTITION_APP */ +#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) || defined(WINSTORECOMPAT) WINBASEAPI LONG WINAPI UnhandledExceptionFilter (struct _EXCEPTION_POINTERS *ExceptionInfo); #endif #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)