[vlc-devel] [PATCH] core: include windows.h before other windows headers

Hugo Beauzée-Luyssen hugo at beauzee.fr
Tue Feb 14 13:31:27 CET 2017


On Tue, Feb 14, 2017, at 01:19 PM, Steve Lhomme wrote:
> the official SDKs don't enforce this
> ---
>  src/win32/dirs.c     | 1 +
>  src/win32/specific.c | 1 +
>  2 files changed, 2 insertions(+)
> 
> diff --git a/src/win32/dirs.c b/src/win32/dirs.c
> index 23fef44baa..617491b6f6 100644
> --- a/src/win32/dirs.c
> +++ b/src/win32/dirs.c
> @@ -36,6 +36,7 @@
>  #ifdef __MINGW32__
>  # include <w32api.h>
>  #endif
> +#include <windows.h>
>  #include <direct.h>
>  #include <shlobj.h>
>  
> diff --git a/src/win32/specific.c b/src/win32/specific.c
> index d2d5451b48..8979ef477c 100644
> --- a/src/win32/specific.c
> +++ b/src/win32/specific.c
> @@ -33,6 +33,7 @@
>  #include "../lib/libvlc_internal.h"
>  #include "config/vlc_getopt.h"
>  
> +#include <windows.h>
>  #include <mmsystem.h>
>  #include <winsock.h>
>  
> -- 
> 2.11.0
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel

AFAICS this is already done from vlc_common.h

-- 
  Hugo Beauzée-Luyssen
  hugo at beauzee.fr


More information about the vlc-devel mailing list