core: explicitly include windows.h when needed

This commit is contained in:
Steve Lhomme 2023-07-04 10:19:21 +02:00
parent a8de50c3d3
commit 8b986b263d
3 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,9 @@
#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
#ifdef _WIN32
# include <windows.h>
#endif
#include <vlc_common.h>
#include <vlc_atomic.h>

View File

@ -51,6 +51,7 @@
#include <gcrypt.h>
#include <vlc_gcrypt.h>
#ifdef _WIN32
#include <windows.h>
#include <shellapi.h>
#endif
#include "update.h"

View File

@ -25,6 +25,7 @@
#include <vlc_common.h>
#include <vlc_rand.h>
#include <windows.h>
#include <bcrypt.h>
void vlc_rand_bytes (void *buf, size_t len)