mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 17:28:13 +00:00
qemu-common.h: Move Win32 fixups into os-win32.h
qemu-common.h includes some fixups for things the Win32 headers don't define or define weirdly. These really belong in os-win32.h, so move them there. Backports commit 1aad8104f3b69206da1f868639e1f69c26f6d482 from qemu
This commit is contained in:
parent
d21aec2212
commit
19cd2a7ca4
2 changed files with 11 additions and 11 deletions
|
@ -77,17 +77,6 @@
|
|||
# error Unknown pointer size
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#define fsync _commit
|
||||
#if !defined(lseek)
|
||||
# define lseek _lseeki64
|
||||
#endif
|
||||
int qemu_ftruncate64(int, int64_t);
|
||||
#if !defined(ftruncate)
|
||||
# define ftruncate qemu_ftruncate64
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "qemu/bswap.h"
|
||||
|
||||
|
|
|
@ -79,4 +79,15 @@ size_t getpagesize(void);
|
|||
# define EPROTONOSUPPORT EINVAL
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#define fsync _commit
|
||||
#if !defined(lseek)
|
||||
# define lseek _lseeki64
|
||||
#endif
|
||||
int qemu_ftruncate64(int, int64_t);
|
||||
#if !defined(ftruncate)
|
||||
# define ftruncate qemu_ftruncate64
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue