mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-02 11:28:20 +00:00
Fix windows build.
This commit is contained in:
parent
9aba05b76a
commit
18316cb25f
@ -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;
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user