Two small fixes for the Windows implementation (#661)

* Check if NOMIMMAX is defined before defining it

* Pass char* for a %s format in a snprintf call
This commit is contained in:
Felipe Oliveira Carvalho 2019-03-21 16:45:04 +01:00 committed by Chris Mumford
parent 6571279d6d
commit 7035af5fc3

View File

@ -4,7 +4,9 @@
// Prevent Windows headers from defining min/max macros and instead
// use STL.
#ifndef NOMINMAX
#define NOMINMAX
#endif // ifndef NOMINMAX
#include <windows.h>
#include <algorithm>