Merge pull request #2722 from ts-korhonen/master
Fix windows clang+vcpkg build.
This commit is contained in:
@@ -27,6 +27,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
# include <string.h>
|
# include <string.h>
|
||||||
|
# include <sys/types.h>
|
||||||
#else
|
#else
|
||||||
# include <libgen.h>
|
# include <libgen.h>
|
||||||
#endif
|
#endif
|
||||||
|
@@ -38,6 +38,10 @@
|
|||||||
#include <86box/nvr.h>
|
#include <86box/nvr.h>
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
||||||
|
#ifndef S_ISDIR
|
||||||
|
# define S_ISDIR(m) (((m) &S_IFMT) == S_IFDIR)
|
||||||
|
#endif
|
||||||
|
|
||||||
#define VISO_SKIP(p, n) \
|
#define VISO_SKIP(p, n) \
|
||||||
{ \
|
{ \
|
||||||
memset(p, 0x00, n); \
|
memset(p, 0x00, n); \
|
||||||
|
@@ -76,6 +76,10 @@ extern "C" {
|
|||||||
# define atomic_bool_t atomic_bool
|
# define atomic_bool_t atomic_bool
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
# define ssize_t intptr_t
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Global variables residing in the platform module. */
|
/* Global variables residing in the platform module. */
|
||||||
extern int dopause, /* system is paused */
|
extern int dopause, /* system is paused */
|
||||||
mouse_capture; /* mouse is captured in app */
|
mouse_capture; /* mouse is captured in app */
|
||||||
|
Reference in New Issue
Block a user