Move NOMINMAX to configure/CONFIG_SITE

The macro must be defined before MS system headers are
included.

This rev. remove #define NOMINMAX from public headers,
but no public headers use min()/max() and this was
never the correct way to use this macro as by convention
library headers are included after system headers,
which is too late to have an effect.
This commit is contained in:
Michael Davidsaver
2018-05-28 11:24:19 -07:00
parent 997e68c99a
commit f1553cc90e
11 changed files with 3 additions and 40 deletions

View File

@@ -7,10 +7,6 @@
* @author mrk
*/
#if defined(_WIN32) && !defined(NOMINMAX)
#define NOMINMAX
#endif
#include <cstddef>
#include <cstdlib>
#include <string>