Skip to main content
Topic: [cleanup] suppress min/max macros from windows.h the 'right way' (Read 2852 times) previous topic - next topic

[cleanup] suppress min/max macros from windows.h the 'right way'

This patch suppresses the min and max macros from windows.h in the 'right way' (they're not used and are already suppressed, just not the 'clean way').  I'm hoping to switch to template versions of min and max, and this is the first step.  I can't test on Windows, so someone else please do so.  :-)

(EDIT: Note that I didn't remove the existing uses of #undef -- it's fine to suppress the unwanted macros both the "clean" way and with #undef, and probably safer to do both)

 

Re: [cleanup] suppress min/max macros from windows.h the 'right way'

Reply #1
I notice that this has been committed, more or less (thank you  :D ) so this can be moved to the included-patches board

Re: [cleanup] suppress min/max macros from windows.h the 'right way'

Reply #2
Moved. And thank you very much for your efforts :)