Build on Windows fixes
svn: r12302
This commit is contained in:
parent
a714ab06f8
commit
6fb0437222
|
@ -2,6 +2,16 @@
|
|||
#ifndef __mzscheme_gc_2__
|
||||
#define __mzscheme_gc_2__
|
||||
|
||||
#ifdef MZ_USE_PLACES
|
||||
# if _MSC_VER
|
||||
# define THREAD_LOCAL __declspec(thread)
|
||||
# else
|
||||
# define THREAD_LOCAL __thread
|
||||
# endif
|
||||
#else
|
||||
# define THREAD_LOCAL /* empty */
|
||||
#endif
|
||||
|
||||
/***************************************************************************/
|
||||
/*** See README for a general overview of the interface architecture. ***/
|
||||
/***************************************************************************/
|
||||
|
|
|
@ -10,9 +10,9 @@
|
|||
/* VirtualProtect can be used only on pages allocated at the same
|
||||
time, so we can't collapse ranges. */
|
||||
|
||||
# define initialize_protect_page_ranges(b, s) /* */
|
||||
# define add_protect_page_range(s, l, a, w) protect_pages(s, l, w)
|
||||
# define flush_protect_page_ranges(w) /* */
|
||||
# define initialize_protect_page_ranges(pr, b, s) /* */
|
||||
# define add_protect_page_range(pr, s, l, a, w) protect_pages(s, l, w)
|
||||
# define flush_protect_page_ranges(pr, w) /* */
|
||||
|
||||
#else
|
||||
|
||||
|
|
|
@ -128,7 +128,7 @@ static void initialize_signal_handler()
|
|||
if (aveh)
|
||||
aveh(TRUE, fault_handler);
|
||||
else
|
||||
generations_available = 0;
|
||||
GC->generations_available = 0;
|
||||
}
|
||||
# endif
|
||||
}
|
||||
|
@ -148,7 +148,7 @@ static void remove_signal_handler()
|
|||
}
|
||||
# endif
|
||||
# ifdef NEED_SIGWIN
|
||||
if (generations_available) {
|
||||
if (GC->generations_available) {
|
||||
HMODULE hm;
|
||||
ULONG (WINAPI*rveh)(gcPVECTORED_EXCEPTION_HANDLER);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user