[AD] wkeybd.c fails compile, patch incl |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Errors while compiling (MSVC):
src/win/wkeybd.c(258) : error C2146: syntax error : missing ')' before
identifier 'key'
src/win/wkeybd.c(258) : error C2198: 'key_dinput_handle_scancode' : too few
actual parameters
src/win/wkeybd.c(258) : error C2146: syntax error : missing ';' before
identifier 'key'
src/win/wkeybd.c(258) : error C2059: syntax error : ')'
Patch attached.
Gillius
Index: src/win/wkeybd.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/win/wkeybd.c,v
retrieving revision 1.6
diff -u -r1.6 wkeybd.c
--- src/win/wkeybd.c 2001/04/04 18:57:41 1.6
+++ src/win/wkeybd.c 2001/04/05 05:37:09
@@ -255,7 +255,7 @@
for (key=0; key<256; key++)
if (key_state[key] & 0x80)
- key_dinput_handle_scancode((unsigned key)key, FALSE);
+ key_dinput_handle_scancode((unsigned char)key, FALSE);
IDirectInputDevice_Unacquire(key_dinput_device);
}