From 8961f42fd47ced75e392c2fb00b67f4da1238c31 Mon Sep 17 00:00:00 2001 From: Anton Bikineev Date: Thu, 9 Jun 2022 14:56:45 +0200 Subject: [PATCH] cppgc: Fix caged-heap-local-data.h for the test-include script This wraps CagedHeapLocalData in #if defined(CPPGC_CAGED_HEAP) Bug: v8:12231 Change-Id: I462ddbbde2308e8d786fb99d6a557c1dcaea8a4e Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3695586 Commit-Queue: Michael Lippautz Auto-Submit: Anton Bikineev Reviewed-by: Michael Lippautz Cr-Commit-Position: refs/heads/main@{#81038} --- include/cppgc/internal/caged-heap-local-data.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/cppgc/internal/caged-heap-local-data.h b/include/cppgc/internal/caged-heap-local-data.h index b901cbfec3..4bb224e4f5 100644 --- a/include/cppgc/internal/caged-heap-local-data.h +++ b/include/cppgc/internal/caged-heap-local-data.h @@ -19,6 +19,8 @@ #include #endif // __cpp_lib_bitopts +#if defined(CPPGC_CAGED_HEAP) + namespace cppgc { namespace internal { @@ -102,4 +104,6 @@ struct CagedHeapLocalData final { } // namespace internal } // namespace cppgc +#endif // defined(CPPGC_CAGED_HEAP) + #endif // INCLUDE_CPPGC_INTERNAL_CAGED_HEAP_LOCAL_DATA_H_