comparison mem_win.c @ 803:236a184bf6f0

Merge
author Michael Pavone <pavone@retrodev.com>
date Sun, 26 Jul 2015 16:51:03 -0700
parents bce97fc0bb8a
children
comparison
equal deleted inserted replaced
802:6811f601008f 803:236a184bf6f0
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