src/video/windib/SDL_dibevents.c
changeset 1303 52b5afd7ecee
parent 1288 ea3888b472bf
child 1312 c9b51268668f
     1.1 --- a/src/video/windib/SDL_dibevents.c	Tue Jan 31 14:59:43 2006 +0000
     1.2 +++ b/src/video/windib/SDL_dibevents.c	Tue Jan 31 15:30:42 2006 +0000
     1.3 @@ -56,7 +56,12 @@
     1.4  
     1.5  /* DJM: If the user setup the window for us, we want to save his window proc,
     1.6     and give him a chance to handle some messages. */
     1.7 -static WNDPROC userWindowProc = NULL;
     1.8 +#ifdef STRICT
     1.9 +#define WNDPROCTYPE	WNDPROC
    1.10 +#else
    1.11 +#define WNDPROCTYPE	FARPROC
    1.12 +#endif
    1.13 +static WNDPROCTYPE userWindowProc = NULL;
    1.14  
    1.15  
    1.16  #ifdef _WIN32_WCE
    1.17 @@ -427,7 +432,7 @@
    1.18  		/* DJM: we want all event's for the user specified
    1.19  			window to be handled by SDL.
    1.20  		 */
    1.21 -		userWindowProc = (WNDPROC)GetWindowLong(SDL_Window, GWL_WNDPROC);
    1.22 +		userWindowProc = (WNDPROCTYPE)GetWindowLong(SDL_Window, GWL_WNDPROC);
    1.23  		SetWindowLong(SDL_Window, GWL_WNDPROC, (LONG)WinMessage);
    1.24  	} else {
    1.25  		SDL_Window = CreateWindow(SDL_Appname, SDL_Appname,