mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-02 02:04:20 +03:00
Add support for Mingw
This commit is contained in:
parent
a8f8d7540d
commit
a19e87fbad
12 changed files with 357 additions and 71 deletions
|
|
@ -19,9 +19,15 @@ main(void)
|
|||
|
||||
/* Get page size. */
|
||||
{
|
||||
#ifdef _WIN32
|
||||
SYSTEM_INFO si;
|
||||
GetSystemInfo(&si);
|
||||
pagesize = (size_t)si.dwPageSize;
|
||||
#else
|
||||
long result = sysconf(_SC_PAGESIZE);
|
||||
assert(result != -1);
|
||||
pagesize = (size_t)result;
|
||||
#endif
|
||||
}
|
||||
|
||||
r = allocm(&p, &sz, 42, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue