From b6c1c9233a08a97ca516af1aceb707fafa837450 Mon Sep 17 00:00:00 2001 From: vitaut Date: Wed, 8 Jul 2015 07:36:36 -0700 Subject: [PATCH] Workaround an issue with VC2010 --- test/util.cc | 2 +- test/util.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/util.cc b/test/util.cc index ab9667c2..d48bdc0e 100644 --- a/test/util.cc +++ b/test/util.cc @@ -50,7 +50,7 @@ std::string get_system_error(int error_code) { #endif } -const char FILE_CONTENT[] = "Don't panic!"; +const char *FILE_CONTENT = "Don't panic!"; fmt::BufferedFile open_buffered_file(FILE **fp) { fmt::File read_end, write_end; diff --git a/test/util.h b/test/util.h index e6e0982a..dc69bef1 100644 --- a/test/util.h +++ b/test/util.h @@ -52,7 +52,7 @@ void increment(char *s); std::string get_system_error(int error_code); -extern const char FILE_CONTENT[]; +extern const char *FILE_CONTENT; // Opens a buffered file for reading. fmt::BufferedFile open_buffered_file(FILE **fp = 0);