diff options
| author | stijn <stinos@zoho.com> | 2014-06-12 17:45:41 +0200 |
|---|---|---|
| committer | stijn <stinos@zoho.com> | 2014-06-22 11:31:16 +0200 |
| commit | 8abcf666cb638152634790a882875f52f7f0432b (patch) | |
| tree | de8e071187cc0dad925f597d0659e7c52e1f907e /windows/init.c | |
| parent | a96cc824bdacb34ced0edef523181c215fba313b (diff) | |
windows: Enable GC and implement bss start and end symbols
The pointers to the bss section are acquired in init.c()
by inspecting the PE header. Works for msvc and mingw.
Diffstat (limited to 'windows/init.c')
| -rw-r--r-- | windows/init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/windows/init.c b/windows/init.c index a370c464e..57f349ef8 100644 --- a/windows/init.c +++ b/windows/init.c @@ -28,9 +28,12 @@ #include <stdio.h> #include <windows.h> +extern void getbss(); + HANDLE hSleepEvent = NULL; void init() { + getbss(); hSleepEvent = CreateEvent(NULL, TRUE, FALSE, FALSE); #ifdef __MINGW32__ putenv("PRINTF_EXPONENT_DIGITS=2"); |
