Re: [AD] [Lin] KEY_* redefined and most shared driver modules not getting built.

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Henrik Stokseth wrote:
> 
> Thomas Fjellstrom <tfjellstrom@xxxxxxxxxx> wrote:
> 
> > 1. When compiling (with kernel 2.4.*) ljoy.c includes
> >    linux/joystick.h which includes linux/input.h
> >    which defines a ton of KEY_* macros.
> 
> in ljoy.c before #include <linux/joystick.h> add the line:
> 
> #define KEY LJOY_KEY
> 
> ...and tell me if it works.
> 
> -henrik

Does cpp really substitute part identifiers?
I don't think your define will change KEY_L
to LJOY_KEY_L...

-- 
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx
http://strangesoft.net



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/