From: Jason Rumney Date: Mon, 27 Nov 2006 10:00:28 +0000 (+0000) Subject: (w32_msg_worker): Declare correctly. X-Git-Tag: emacs-pretest-22.0.92~482 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b0d4e0c74ab71b37689eadf3ba81de9cf63b5283;p=emacs.git (w32_msg_worker): Declare correctly. (w32_initialize): Don't cast w32_msg_worker. --- diff --git a/src/w32term.c b/src/w32term.c index 13167385234..985d77570e4 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -6282,7 +6282,7 @@ x_delete_display (dpyinfo) /* Set up use of W32. */ -DWORD w32_msg_worker (); +DWORD WINAPI w32_msg_worker (void * arg); void x_flush (struct frame * f) @@ -6387,8 +6387,8 @@ w32_initialize () PeekMessage (&msg, NULL, 0, 0, PM_NOREMOVE); hWindowsThread = CreateThread (NULL, 0, - (LPTHREAD_START_ROUTINE) w32_msg_worker, - 0, 0, &dwWindowsThreadId); + w32_msg_worker, + 0, 0, &dwWindowsThreadId); GetMessage (&msg, NULL, WM_EMACS_DONE, WM_EMACS_DONE); }