Ver código fonte

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
main
Felipe Oliveira Carvalho 5 anos atrás
committed by Chris Mumford
pai
commit
7035af5fc3
1 arquivos alterados com 2 adições e 0 exclusões
  1. +2
    -0
      util/env_windows.cc

+ 2
- 0
util/env_windows.cc Ver arquivo

@ -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>

Carregando…
Cancelar
Salvar