Skip to content

[C API] Don't define the COMPILER macro in the public C API #141341

Description

@vstinner

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-windowsbuildThe build process and cross-buildtopic-C-APItype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions