]> gitweb.factorcode.org Git - factor.git/commitdiff
fix some win32 seh compile warnings
authorerg <erg@trifocus.net>
Thu, 3 Aug 2006 22:06:43 +0000 (22:06 +0000)
committererg <erg@trifocus.net>
Thu, 3 Aug 2006 22:06:43 +0000 (22:06 +0000)
vm/os-windows.c
vm/os-windows.h

index c620587b3bd75b37dc61af9b0b2a7ca6a967f18a..522607e4c50c9c55def5469837a08fa8e5d922d1 100644 (file)
@@ -218,7 +218,7 @@ void seh_call(void (*func)(), exception_handler_t *handler)
        asm("mov %0, %%fs:0" : "=r" (record.next_handler));
 }
 
-static long getpagesize (void) {
+long getpagesize (void) {
        static long g_pagesize = 0;
        if (! g_pagesize) {
                SYSTEM_INFO system_info;
@@ -228,15 +228,14 @@ static long getpagesize (void) {
        return g_pagesize;
 }
 
-//static long exception_handler(void *rec, void *frame, void *ctx, void *dispatch)
-static long exception_handler(PEXCEPTION_RECORD rec, void *frame, void *ctx, void *dispatch)
+static void exception_handler(PEXCEPTION_RECORD rec, void *frame, void *ctx, void *dispatch)
 {
        memory_protection_error((void*)rec->ExceptionInformation[1],SIGSEGV);
 }
 
 void platform_run(void)
 {
-       seh_call(run_toplevel, exception_handler);
+       seh_call(run_toplevel, (exception_handler_t*) exception_handler);
 }
 
 const char *default_image_path(void)
index ecb202b13ab9af14adc4a4bd257cec14f3677239..764d7124af336ef605deba34205324361fd27877 100644 (file)
@@ -29,6 +29,7 @@ void primitive_cd(void);
 INLINE void init_signals(void) {}
 INLINE void early_init(void) {}
 const char *default_image_path(void);
+long getpagesize (void);
 
 s64 current_millis(void);