From 859b7f1d587c7774ac0da29d12e7ad1cef135c59 Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 1 Dec 2017 04:42:23 +0200 Subject: [PATCH] fixed test for visual c++ --- tests/file_log.cpp | 5 ++--- tests/includes.h | 4 ---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/file_log.cpp b/tests/file_log.cpp index 23dd955d..086bd5ed 100644 --- a/tests/file_log.cpp +++ b/tests/file_log.cpp @@ -215,10 +215,9 @@ TEST_CASE("rotating_file_sink::calc_filename3", "[rotating_file_sink]]") - - // 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 TEST_CASE("daily_file_sink::default_daily_file_name_calculator1", "[daily_file_sink]]") { // daily_YYYY-MM-DD_hh-mm.txt diff --git a/tests/includes.h b/tests/includes.h index bf22414c..8e70efad 100644 --- a/tests/includes.h +++ b/tests/includes.h @@ -6,10 +6,6 @@ #include #include #include -// regex supported only from gcc 4.9 and above -#if !(__GNUC__ <= 4 && __GNUC_MINOR__ < 9) -#include -#endif #include "catch.hpp" #include "utils.h"