best practice: lways define NOMINMAX when including windows.h

This commit is contained in:
Dane Springmeyer 2013-11-06 15:34:53 -08:00
parent f66fe78c03
commit 6c8a8007e4
2 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@
#include <stdexcept>
#ifdef _WINDOWS
#define NOMINMAX
#include <windows.h>
#define handle HMODULE
#define dlsym GetProcAddress

View File

@ -25,7 +25,7 @@
#include <mapnik/utils.hpp>
#include <string>
#include <vector>
#define NOMINMAX
#include <windows.h>
namespace mapnik {