Shared/CommonWindows.h file

Windows®-specific header file, falls back to Common.h on other platforms.

This file should be included instead of <windows.h> to avoid potential issues. It automatically defines WIN32_LEAN_AND_MEAN, WINRT_LEAN_AND_MEAN and NOMINMAX to include only the smallest part of <windows.h> as possible. Afterwards, it removes the definitions that cause the most collisions using #undef.