Ark icon indicating copy to clipboard operation
Ark copied to clipboard

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

Open SuperFola opened this issue 1 year ago • 0 comments

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...)

SuperFola avatar Oct 12 '24 14:10 SuperFola