News:

Want to praise Simutrans?
Your feedback is important for us ;D.

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

Started by neroden, July 10, 2010, 03:52:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

neroden

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)

neroden

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

knightly