mirror of
https://github.com/mirror/tinycc.git
synced 2025-02-26 08:00:09 +08:00
Fix warning about undeclared __clear_cache function call.
This commit is contained in:
parent
d0dae7f241
commit
b46f7461a3
1
tccrun.c
1
tccrun.c
@ -234,6 +234,7 @@ static void set_pages_executable(void *ptr, unsigned long length)
|
|||||||
unsigned long old_protect;
|
unsigned long old_protect;
|
||||||
VirtualProtect(ptr, length, PAGE_EXECUTE_READWRITE, &old_protect);
|
VirtualProtect(ptr, length, PAGE_EXECUTE_READWRITE, &old_protect);
|
||||||
#else
|
#else
|
||||||
|
extern void __clear_cache(char *beginning, char *end);
|
||||||
#ifndef PAGESIZE
|
#ifndef PAGESIZE
|
||||||
# define PAGESIZE 4096
|
# define PAGESIZE 4096
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user