mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 00:45:40 +00:00
oslib-win32: Change return type of function getpagesize
getpagesize on Linux returns an int. Fix QEMU's implementation for Windows to return an int (instead of size_t), too. This fixes a compiler warning which was introduced recently (commit 093e3c42). Backports commit a28c2f2df7679e3a87789e9fb7ed69331f697297 from qemu
This commit is contained in:
parent
1918761803
commit
5218799171
|
@ -73,7 +73,7 @@
|
|||
#define sigsetjmp(env, savemask) setjmp(env)
|
||||
#define siglongjmp(env, val) longjmp(env, val)
|
||||
|
||||
size_t getpagesize(void);
|
||||
int getpagesize(void);
|
||||
|
||||
#if !defined(EPROTONOSUPPORT)
|
||||
# define EPROTONOSUPPORT EINVAL
|
||||
|
|
|
@ -94,7 +94,7 @@ void qemu_anon_ram_free(void *ptr, size_t size)
|
|||
}
|
||||
}
|
||||
|
||||
size_t getpagesize(void)
|
||||
int getpagesize(void)
|
||||
{
|
||||
SYSTEM_INFO system_info;
|
||||
|
||||
|
|
Loading…
Reference in a new issue