diff options
author | 2009-12-29 14:35:54 +0000 | |
---|---|---|
committer | 2009-12-29 14:35:54 +0000 | |
commit | 81523f2e101d3ffea62041420c244030e9d572e7 (patch) | |
tree | 8b1727ae32b7f89ce1a9cffbbea6605a9100dd64 /src/osd/windows/winmain.c | |
parent | bee6282e99533a240a386f67a203e6ae043aa20e (diff) |
gcc 4.5.0 compilation fixes.
Diffstat (limited to 'src/osd/windows/winmain.c')
-rw-r--r-- | src/osd/windows/winmain.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/osd/windows/winmain.c b/src/osd/windows/winmain.c index 41064c858f3..968f25f3bf3 100644 --- a/src/osd/windows/winmain.c +++ b/src/osd/windows/winmain.c @@ -141,7 +141,9 @@ static int is_double_click_start(int argc); static DWORD WINAPI watchdog_thread_entry(LPVOID lpParameter); static LONG CALLBACK exception_filter(struct _EXCEPTION_POINTERS *info); static const char *lookup_symbol(UINT32 address); +#ifndef PTR64 static int get_code_base_size(UINT32 *base, UINT32 *size); +#endif static void start_profiler(void); static void stop_profiler(void); @@ -364,7 +366,7 @@ void osd_init(running_machine *machine) assert_always(watchdog_reset_event != NULL, "Failed to create watchdog reset event"); watchdog_exit_event = CreateEvent(NULL, TRUE, FALSE, NULL); assert_always(watchdog_exit_event != NULL, "Failed to create watchdog exit event"); - watchdog_thread = CreateThread(NULL, 0, watchdog_thread_entry, (LPVOID)watchdog, 0, NULL); + watchdog_thread = CreateThread(NULL, 0, watchdog_thread_entry, (LPVOID)(FPTR)watchdog, 0, NULL); assert_always(watchdog_thread != NULL, "Failed to create watchdog thread"); } } @@ -706,6 +708,7 @@ static const char *lookup_symbol(UINT32 address) // get_code_base_size //============================================================ +#ifndef PTR64 static int get_code_base_size(UINT32 *base, UINT32 *size) { FILE * map = fopen(mapfile_name, "r"); @@ -728,6 +731,7 @@ static int get_code_base_size(UINT32 *base, UINT32 *size) fclose(map); return result; } +#endif #if ENABLE_PROFILER |