From 685e17bfea3d3e1d90429f62b303296d4d14c1a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?furby=E2=84=A2?= Date: Mon, 9 Sep 2024 06:54:15 -0600 Subject: [PATCH] PixarUSD: only import HgiGL if available. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: furby™ --- Sources/PixarUSD/Imaging/HgiGL/HgiGL.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/PixarUSD/Imaging/HgiGL/HgiGL.swift b/Sources/PixarUSD/Imaging/HgiGL/HgiGL.swift index 027c040ed..d8b3f0bc7 100644 --- a/Sources/PixarUSD/Imaging/HgiGL/HgiGL.swift +++ b/Sources/PixarUSD/Imaging/HgiGL/HgiGL.swift @@ -10,7 +10,9 @@ * . x x x . o o o . x x x . : : : . o x o . : : : . * ---------------------------------------------------------------- */ +#if canImport(HgiGL) import HgiGL public enum HgiGL {} +#endif // canImport(HgiGL)