mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-03 08:12:51 -06:00
added getpagesize() definition for Windows
This commit is contained in:
@@ -41,6 +41,19 @@ typedef struct {
|
|||||||
#define JIT_VSTATE JIT_V1
|
#define JIT_VSTATE JIT_V1
|
||||||
#define JIT_VCLOS JIT_V2
|
#define JIT_VCLOS JIT_V2
|
||||||
|
|
||||||
|
#if defined(__MINGW32__)
|
||||||
|
#include <windows.h>
|
||||||
|
|
||||||
|
static int
|
||||||
|
getpagesize()
|
||||||
|
{
|
||||||
|
SYSTEM_INFO system_info;
|
||||||
|
GetSystemInfo(&system_info);
|
||||||
|
return system_info.dwPageSize;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
pgf_jit_finalize_page(GuFinalizer* self)
|
pgf_jit_finalize_page(GuFinalizer* self)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user