From f39e4aac42ce9cc0b30e318819a9ad6dbd951d41 Mon Sep 17 00:00:00 2001 From: MaxEW707 <82551778+MaxEW707@users.noreply.github.com> Date: Wed, 10 Jan 2024 20:21:33 -0500 Subject: [PATCH] Add `yvals_core.h` interposing library --- clang/lib/Headers/CMakeLists.txt | 1 + clang/lib/Headers/yvals_core.h | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 clang/lib/Headers/yvals_core.h diff --git a/clang/lib/Headers/CMakeLists.txt b/clang/lib/Headers/CMakeLists.txt index a453cedf21a64..9d478edd61d86 100644 --- a/clang/lib/Headers/CMakeLists.txt +++ b/clang/lib/Headers/CMakeLists.txt @@ -256,6 +256,7 @@ set(windows_only_files intrin0.h intrin.h vadefs.h + yvals_core.h ) set(utility_files diff --git a/clang/lib/Headers/yvals_core.h b/clang/lib/Headers/yvals_core.h new file mode 100644 index 0000000000000..fd36aabfba999 --- /dev/null +++ b/clang/lib/Headers/yvals_core.h @@ -0,0 +1,26 @@ +/* ===-------- vadefs.h ---------------------------------------------------=== + * + * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. + * See https://llvm.org/LICENSE.txt for license information. + * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception + * + *===-----------------------------------------------------------------------=== + */ + +/* Only include this if we are aiming for MSVC compatibility. */ +#ifndef _MSC_VER +#include_next +#else + +#ifndef __clang_yvals_core_h +#define __clang_yvals_core_h + +#include_next + +#ifdef _STL_INTRIN_HEADER +#undef _STL_INTRIN_HEADER +#define _STL_INTRIN_HEADER +#endif + +#endif +#endif