diff --git a/windows/hid.c b/windows/hid.c index 59ec617e..951ee08a 100644 --- a/windows/hid.c +++ b/windows/hid.c @@ -30,6 +30,11 @@ extern "C" { #endif +#ifndef WIN32_LEAN_AND_MEAN +/* Reduces the overhead from windows.h */ +#define WIN32_LEAN_AND_MEAN +#endif + #include "hidapi_winapi.h" #include diff --git a/windows/hidapi_cfgmgr32.h b/windows/hidapi_cfgmgr32.h index 638512a8..19783ee0 100644 --- a/windows/hidapi_cfgmgr32.h +++ b/windows/hidapi_cfgmgr32.h @@ -32,6 +32,7 @@ /* This part of the header mimics cfgmgr32.h, but only what is used by HIDAPI */ +#include #include #include #include