From a2fc276ed2556c5da59f8b039bbb6d97f3003134 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Wed, 4 Dec 2024 16:12:53 -0600 Subject: [PATCH] [libc] Remove complicated header guards on HSA include Summary: This is much more standard now, we already require new HSA with what we use, so no point checking for this. --- libc/utils/gpu/loader/amdgpu/amdhsa-loader.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/libc/utils/gpu/loader/amdgpu/amdhsa-loader.cpp b/libc/utils/gpu/loader/amdgpu/amdhsa-loader.cpp index a3b70c0230f776..00fde147b0abde 100644 --- a/libc/utils/gpu/loader/amdgpu/amdhsa-loader.cpp +++ b/libc/utils/gpu/loader/amdgpu/amdhsa-loader.cpp @@ -15,18 +15,8 @@ #include "Loader.h" -#if defined(__has_include) -#if __has_include("hsa/hsa.h") #include "hsa/hsa.h" #include "hsa/hsa_ext_amd.h" -#elif __has_include("hsa.h") -#include "hsa.h" -#include "hsa_ext_amd.h" -#endif -#else -#include "hsa/hsa.h" -#include "hsa/hsa_ext_amd.h" -#endif #include "llvm/Frontend/Offloading/Utility.h"