[libhid-discuss] unable to include hid.h in C++

Donald Kayser linux at kayser.net
Mon Oct 25 22:21:23 UTC 2010


I am unable to use libhid with a c++ application since hid.h redefines  
bool.

On lines around line 20 there is a macro
#define bool _Bool
#define true  1
#define false 0

It is not legal to redefine reserved words.

Has anyone else attempted to use libhid in a C++ application, and if  
so, what did you do to get around this?

Thanks,
Donald Kayser



More information about the libhid-discuss mailing list