contrib: slighty faster way to get the mingw-w64 major version
It doesn't involve grep nor sed. It just uses the preprocessor to output the replaced value.
Co-authored-by: Stephen Kitt steve@sk2.org
v2 added eventtoken.h
needed by windows.storage.h (no idea why/how it worked until now)
Edited by Steve Lhomme