Added support for compiling C++ files. It isn't included for all
[AROS.git] / arch / all-mingw32 / kernel / host_mmu.c
blobd6ec365dc6d65d31d41f859a99fa9cb825d728ca
1 #include <windows.h>
3 #include "host_intern.h"
5 /*
6 * A simple glue code. I'm too lazy to import kernel32.dll via hostlib.resource
7 * just for one function.
8 */
10 unsigned int __declspec(dllexport) __aros core_protect(void *addr, unsigned int len, unsigned int prot)
12 DWORD oldprot;
14 return VirtualProtect(addr, len, prot, &oldprot);