瀏覽代碼

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
ld
Felipe Oliveira Carvalho 5 年之前
committed by Chris Mumford
父節點
當前提交
7035af5fc3
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      util/env_windows.cc

+ 2
- 0
util/env_windows.cc 查看文件

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

Loading…
取消
儲存