Compilation errors with Custom Plugin migration from 4.19 to 4.20

Hi, my issues are related to compiling a custom plugin in 4.20.
I’m speculating that the issue is due to hid.c (available on the web) which includes the windows.h header file.
The custom plugin compiles without errors in 4.19 but doesn’t compile in 4.20.
Plugin files will be provided on request if required.

Any help would be appreciated.