diff --git a/windows/hid.c b/windows/hid.c index 59ec617e..f7d16f38 100644 --- a/windows/hid.c +++ b/windows/hid.c @@ -30,6 +30,11 @@ extern "C" { #endif +#ifdef WIN32_LEAN_AND_MEAN +/* This define may be set by IDE/project and it breaks compilation */ +#undef WIN32_LEAN_AND_MEAN +#endif + #include "hidapi_winapi.h" #include