From 9e5283f27f753a226100a0878b3be5b44f603f19 Mon Sep 17 00:00:00 2001 From: "Stephan T. Lavavej" Date: Thu, 12 Apr 2018 23:56:17 +0000 Subject: [libcxx] [test] Use TEST_COMPILER_C1XX. Also TEST_COMPILER_CLANG in one place. (More could be changed.) llvm-svn: 329977 --- .../alg.modifying.operations/alg.generate/generate_n.pass.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libcxx/test/std/algorithms/alg.modifying.operations/alg.generate/generate_n.pass.cpp') diff --git a/libcxx/test/std/algorithms/alg.modifying.operations/alg.generate/generate_n.pass.cpp b/libcxx/test/std/algorithms/alg.modifying.operations/alg.generate/generate_n.pass.cpp index 36132443999..7e81610acc8 100644 --- a/libcxx/test/std/algorithms/alg.modifying.operations/alg.generate/generate_n.pass.cpp +++ b/libcxx/test/std/algorithms/alg.modifying.operations/alg.generate/generate_n.pass.cpp @@ -15,14 +15,15 @@ // constexpr void // constexpr after c++17 // generate_n(Iter first, Size n, Generator gen); -#ifdef _MSC_VER +#include "test_macros.h" + +#ifdef TEST_COMPILER_C1XX #pragma warning(disable: 4244) // conversion from 'const double' to 'int', possible loss of data #endif #include #include -#include "test_macros.h" #include "test_iterators.h" #include "user_defined_integral.hpp" -- cgit v1.2.3