From 74d59882f6b87f2f8e4027ece148d5c01a30f090 Mon Sep 17 00:00:00 2001 From: Antonio Maiorano Date: Tue, 13 Jun 2023 11:17:13 -0400 Subject: [PATCH] Add missing headers for clang with libc++ builds I needed to add these headers to successfully build DXC with clang and libc++. --- lib/DxilDia/DxcPixBase.h | 1 + lib/Support/raw_ostream.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/DxilDia/DxcPixBase.h b/lib/DxilDia/DxcPixBase.h index 9fe45f37cd..913b2faf96 100644 --- a/lib/DxilDia/DxcPixBase.h +++ b/lib/DxilDia/DxcPixBase.h @@ -1,6 +1,7 @@ #pragma once #include "dxc/Support/WinIncludes.h" +#include namespace dxil_debug_info { diff --git a/lib/Support/raw_ostream.cpp b/lib/Support/raw_ostream.cpp index 39bd496ed0..efa35fc0d3 100644 --- a/lib/Support/raw_ostream.cpp +++ b/lib/Support/raw_ostream.cpp @@ -28,6 +28,7 @@ #include #include #include +#include // HLSL Change: add for '_fpclass' // may provide O_BINARY. #if defined(HAVE_FCNTL_H)