Fix windows build.

This commit is contained in:
Victor Zverovich 2014-06-06 07:29:57 -07:00
parent 9aba05b76a
commit 18316cb25f
2 changed files with 7 additions and 4 deletions

View File

@ -35,10 +35,7 @@
#include <memory>
#include <sstream>
// Check if format.h compiles with windows.h included.
#ifdef _WIN32
# include <windows.h>
// Fix MSVC warning about "unsafe" fopen.
FILE *FOpen(const char *filename, const char *mode) {
FILE *f = 0;

View File

@ -27,9 +27,15 @@
#include <cstring>
#include "gtest-extra.h"
#include "format.h"
#include "util.h"
// Check if format.h compiles with windows.h included.
#ifdef _WIN32
# include <windows.h>
#endif
#include "format.h"
using fmt::StringRef;
namespace {