Mercurial > repos > blastem
comparison mem_win.c @ 795:bce97fc0bb8a
Fix mingw-w64 build and cross-compilation
author | =?UTF-8?q?Higor=20Eur=C3=ADpedes?= <heuripedes@gmail.com> |
---|---|
date | Sun, 26 Jul 2015 10:59:41 -0700 |
parents | 80a67be1770b |
children |
comparison
equal
deleted
inserted
replaced
790:e8b14d5a5b5a | 795:bce97fc0bb8a |
---|---|
3 This file is part of BlastEm. | 3 This file is part of BlastEm. |
4 BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text. | 4 BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text. |
5 */ | 5 */ |
6 | 6 |
7 #include "mem.h" | 7 #include "mem.h" |
8 #include <Windows.h> | 8 #include <windows.h> |
9 | 9 |
10 void * alloc_code(size_t *size) | 10 void * alloc_code(size_t *size) |
11 { | 11 { |
12 *size += PAGE_SIZE - (*size & (PAGE_SIZE - 1)); | 12 *size += PAGE_SIZE - (*size & (PAGE_SIZE - 1)); |
13 | 13 |