Skip to content

Commit

Permalink
Two small fixes for the Windows implementation (google#661)
Browse files Browse the repository at this point in the history
* Check if NOMIMMAX is defined before defining it

* Pass char* for a %s format in a snprintf call
  • Loading branch information
felipecrv authored and cmumford committed Mar 21, 2019
1 parent 6571279 commit 7035af5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions util/env_windows.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 7035af5

Please sign in to comment.