On Windows, pyconfig.h defines the COMPILER macro. I propose to rename it to _Py_COMPILER to avoid name conflicts: see https://discuss.python.org/t/pre-pep-use-a-header-file-that-can-undefine-the-macros-defined-by-python-h/104784 for such conflict in practice.
Linked PRs