Fix windows clang+vcpkg build.

This commit is contained in:
ts-korhonen
2022-10-18 20:44:09 +03:00
parent 33efc81c3a
commit f7c11a94e9
3 changed files with 9 additions and 0 deletions

View File

@@ -27,6 +27,7 @@
#include <string.h>
#ifdef _WIN32
# include <string.h>
# include <sys/types.h>
#else
# include <libgen.h>
#endif

View File

@@ -38,6 +38,10 @@
#include <86box/nvr.h>
// clang-format on
#ifndef S_ISDIR
# define S_ISDIR(m) (((m) &S_IFMT) == S_IFDIR)
#endif
#define VISO_SKIP(p, n) \
{ \
memset(p, 0x00, n); \

View File

@@ -76,6 +76,10 @@ extern "C" {
# define atomic_bool_t atomic_bool
#endif
#if defined(_MSC_VER)
# define ssize_t intptr_t
#endif
/* Global variables residing in the platform module. */
extern int dopause, /* system is paused */
mouse_capture; /* mouse is captured in app */