zhoushun / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Consider #define NOMINMAX before including windows.h #495

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, gtest's code does

#include <windows.h>
#undef min

Consider instead:

#define NOMINMAX
#include <windows.h>

You may even want for reduced compilation times

#define NOMINMAX
#define WIN32_LEAN_AND_MEAN
#include <windows.h>

Original issue reported on code.google.com by gregory....@gmail.com on 4 Aug 2015 at 5:39