Skip to content

Add a proxy to include windows.h to avoid having it polluting everything #499

@SuperFola

Description

@SuperFola

Is your feature request related to a problem?

Including windows.h is like including a virus, it goes everywhere and causes problems with std::min and std::max by defining macros with those names.

Describe the solution you would like

It would be interesting to see the approach described in https://aras-p.info/blog/2018/01/12/Minimizing-windows.h/ to avoid this pollution and make developing on Windows much better.

Is it a big modification to the language? Leave it if you don't know

  • Breaking change
  • Compiler/syntax modifications
  • Runtime modifications (standard library, modules, packages...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions