mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 10:01:33 +08:00
fixed test for visual c++
This commit is contained in:
parent
49989e0678
commit
859b7f1d58
@ -215,10 +215,9 @@ TEST_CASE("rotating_file_sink::calc_filename3", "[rotating_file_sink]]")
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// regex supported only from gcc 4.9 and above
|
// regex supported only from gcc 4.9 and above
|
||||||
#if !(__GNUC__ <= 4 && __GNUC_MINOR__ < 9)
|
#if defined (_MSC_VER) || !(__GNUC__ <= 4 && __GNUC_MINOR__ < 9)
|
||||||
|
#include <regex>
|
||||||
TEST_CASE("daily_file_sink::default_daily_file_name_calculator1", "[daily_file_sink]]")
|
TEST_CASE("daily_file_sink::default_daily_file_name_calculator1", "[daily_file_sink]]")
|
||||||
{
|
{
|
||||||
// daily_YYYY-MM-DD_hh-mm.txt
|
// daily_YYYY-MM-DD_hh-mm.txt
|
||||||
|
@ -6,10 +6,6 @@
|
|||||||
#include <ostream>
|
#include <ostream>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <exception>
|
#include <exception>
|
||||||
// regex supported only from gcc 4.9 and above
|
|
||||||
#if !(__GNUC__ <= 4 && __GNUC_MINOR__ < 9)
|
|
||||||
#include <regex>
|
|
||||||
#endif
|
|
||||||
#include "catch.hpp"
|
#include "catch.hpp"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user