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:
Peter Maydell 2018-02-15 08:35:34 -05:00 committed by Lioncash
parent d21aec2212
commit 19cd2a7ca4
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7
2 changed files with 11 additions and 11 deletions

View file

@ -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"

View file

@ -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