Merge pull request #2722 from ts-korhonen/master

Fix windows clang+vcpkg build.
This commit is contained in:
Miran Grča
2022-10-19 15:10:16 +02:00
committed by GitHub
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 */