src/video/wincommon/SDL_sysevents.c
branchSDL-1.2
changeset 5897 90faab009401
parent 5892 eca95aaa02a2
child 5898 17c2babefa47
     1.1 --- a/src/video/wincommon/SDL_sysevents.c	Sun Sep 11 15:24:44 2011 -0400
     1.2 +++ b/src/video/wincommon/SDL_sysevents.c	Sun Sep 11 22:31:53 2011 -0400
     1.3 @@ -762,7 +762,10 @@
     1.4  #ifndef NO_GETKEYBOARDSTATE
     1.5  	/* Initialise variables for SDL_ToUnicode() */
     1.6  	codepage = GetCodePage();
     1.7 -	SDL_ToUnicode = Is9xME() ? ToUnicode9xME : ToUnicode;
     1.8 +
     1.9 +	/* Cygwin headers don't match windows.h, so we have to cast around a
    1.10 +	   const issue here... */
    1.11 +	SDL_ToUnicode = Is9xME() ? ToUnicode9xME : (ToUnicodeFn) ToUnicode;
    1.12  #endif
    1.13  
    1.14  	app_registered = 1;