On Tue, Apr 10, 2018, at 3:44 PM, Hugo Beauzée-Luyssen wrote:
> ---
> mingw-w64-headers/include/winreg.h | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/mingw-w64-headers/include/winreg.h b/mingw-w64-headers/
> include/winreg.h
> index c7caec8b..d49ab454 100644
> --- a/mingw-w64-headers/include/winreg.h
> +++ b/mingw-w64-headers/include/winreg.h
> @@ -7,11 +7,14 @@
> #define _WINREG_
>
> #include <_mingw_unicode.h>
> +#include <winapifamily.h>
>
> #ifdef __cplusplus
> extern "C" {
> #endif
>
> +#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
> +
> #ifndef WINVER
> #define WINVER 0x0502
> #endif
> @@ -408,6 +411,8 @@ WINADVAPI DWORD WINAPI InitiateShutdownW(
>
> #endif /* (_WIN32_WINNT >= 0x0600) */
>
> +#endif /* WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) */
> +
> #ifdef __cplusplus
> }
> #endif
Hm, sorry it seems this patch is incomplete and might break if/when using
shlwapi.h
--
Hugo Beauzée-Luyssen
[email protected]
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public