improve portability of unit test code for windows compilers

This commit is contained in:
Axel Kohlmeyer
2021-11-03 10:54:21 -04:00
parent 50f39cd752
commit 1ad982aa85
2 changed files with 7 additions and 2 deletions

View File

@ -9,6 +9,11 @@
#include "fmtlib_format.cpp"
#include "fmtlib_os.cpp"
// Windows may define this as a macro
#if defined(max)
#undef max
#endif
TEST(ErrorStats, test)
{
ErrorStats stats;