From 9624e6f9ed97b0f4ac4ac1f41d3d07614a88700d Mon Sep 17 00:00:00 2001 From: alifarazz Date: Sat, 27 Sep 2025 20:37:47 -0400 Subject: [PATCH] Keep cstdbool header behind cpp macros cstdbool header was deprecated in C++17 and removed in C++20. --- src/include/internal/host/nvshmemi_mem_transport.hpp | 4 +++- src/include/internal/host/nvshmemi_symmetric_heap.hpp | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/include/internal/host/nvshmemi_mem_transport.hpp b/src/include/internal/host/nvshmemi_mem_transport.hpp index 37a626b..bfb0580 100644 --- a/src/include/internal/host/nvshmemi_mem_transport.hpp +++ b/src/include/internal/host/nvshmemi_mem_transport.hpp @@ -8,7 +8,9 @@ #define NVSHMEMI_MEM_TRANSPORT_HPP #include -#include +#if defined(HAVE_STDBOOL_H) && (__cplusplus < 201703L) +# include +#endif #include #include #include diff --git a/src/include/internal/host/nvshmemi_symmetric_heap.hpp b/src/include/internal/host/nvshmemi_symmetric_heap.hpp index 3e61ec5..d570286 100644 --- a/src/include/internal/host/nvshmemi_symmetric_heap.hpp +++ b/src/include/internal/host/nvshmemi_symmetric_heap.hpp @@ -9,7 +9,10 @@ #include #include -#include +#if defined(HAVE_STDBOOL_H) && (__cplusplus < 201703L) +# include +#endif + #include #include #include