mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 23:48:27 +00:00
osdep.h: Include glib-compat.h in osdep.h rather than qemu-common.h
Our use of glib is now pervasive across QEMU. Move the include of glib-compat.h from qemu-common.h to osdep.h so that it is more widely accessible and doesn't get forgotten by accident. (Failure to include it will result in build failure on old versions of glib which is likely to be unnoticed by most developers.) Backports commit 529490e5d664a20d5c4223070dd7c03a0e02b6bd from qemu
This commit is contained in:
parent
1650af8c8b
commit
f336fc39eb
2 changed files with 2 additions and 1 deletions
|
@ -24,7 +24,6 @@
|
|||
#define TFR(expr) do { if ((expr) != -1) break; } while (errno == EINTR)
|
||||
|
||||
#include "unicorn/platform.h"
|
||||
#include "glib_compat.h"
|
||||
|
||||
/* HOST_LONG_BITS is the size of a native pointer in bits. */
|
||||
#if UINTPTR_MAX == UINT32_MAX
|
||||
|
|
|
@ -61,6 +61,8 @@
|
|||
#include "sysemu/os-win32.h"
|
||||
#endif
|
||||
|
||||
#include "glib_compat.h"
|
||||
|
||||
#if defined(CONFIG_SOLARIS) && CONFIG_SOLARIS_VERSION < 10
|
||||
/* [u]int_fast*_t not in <sys/int_types.h> */
|
||||
typedef unsigned char uint_fast8_t;
|
||||
|
|
Loading…
Reference in a new issue