From 1dd1b5d5f254ef25dd184d71cb60db92a750d96b Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Thu, 28 Mar 2019 17:22:19 +0000 Subject: [pstl] Introduce forward declarations Necessary when pstl is included from with and to prevent a partially declared standard library when pstl itself uses algorithms from and . Also, this patch makes sure that configuration comes via standard headers. Directly including pstl_config.h in implementation files is incompatible with inclusion of pstl into a standard library implementation which provides it's own library wide configuration and may configure the library differently to the pstl_config.h used by the standalone implementation. Differential Revision: https://reviews.llvm.org/D59122 llvm-svn: 357189 --- .../std/algorithms/alg.modifying.operations/transform_binary.pass.cpp | 2 +- .../std/algorithms/alg.modifying.operations/transform_unary.pass.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'pstl/test/std/algorithms') diff --git a/pstl/test/std/algorithms/alg.modifying.operations/transform_binary.pass.cpp b/pstl/test/std/algorithms/alg.modifying.operations/transform_binary.pass.cpp index 2d680c369f2..d44284de4e5 100644 --- a/pstl/test/std/algorithms/alg.modifying.operations/transform_binary.pass.cpp +++ b/pstl/test/std/algorithms/alg.modifying.operations/transform_binary.pass.cpp @@ -10,8 +10,8 @@ #include "support/pstl_test_config.h" #ifdef PSTL_STANDALONE_TESTS -#include "pstl/algorithm" #include "pstl/execution" +#include "pstl/algorithm" #else #include #include diff --git a/pstl/test/std/algorithms/alg.modifying.operations/transform_unary.pass.cpp b/pstl/test/std/algorithms/alg.modifying.operations/transform_unary.pass.cpp index e198c6e2a8b..eae992c4111 100644 --- a/pstl/test/std/algorithms/alg.modifying.operations/transform_unary.pass.cpp +++ b/pstl/test/std/algorithms/alg.modifying.operations/transform_unary.pass.cpp @@ -10,8 +10,8 @@ #include "support/pstl_test_config.h" #ifdef PSTL_STANDALONE_TESTS -#include "pstl/algorithm" #include "pstl/execution" +#include "pstl/algorithm" #else #include #include -- cgit v1.2.3