From 08dced51e9a688ec3e9c1b7c5f90c99f2b1cdca7 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Thu, 24 Feb 2022 11:38:17 +0000 Subject: [PATCH] Make checks for C++ specific. --- include/boost/config/detail/suffix.hpp | 2 +- include/boost/config/stdlib/libcpp.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/config/detail/suffix.hpp b/include/boost/config/detail/suffix.hpp index b8b37d0b4..2423c35d6 100644 --- a/include/boost/config/detail/suffix.hpp +++ b/include/boost/config/detail/suffix.hpp @@ -1202,7 +1202,7 @@ namespace std{ using ::type_info; } #endif #endif -#ifdef __has_include +#if defined(__cplusplus) && defined(__has_include) #if !__has_include() # define BOOST_NO_CXX20_HDR_VERSION #else diff --git a/include/boost/config/stdlib/libcpp.hpp b/include/boost/config/stdlib/libcpp.hpp index fc1d5bb4a..bc8536ead 100644 --- a/include/boost/config/stdlib/libcpp.hpp +++ b/include/boost/config/stdlib/libcpp.hpp @@ -104,7 +104,7 @@ # define BOOST_NO_CXX98_BINDERS #endif -#ifdef __has_include +#if defined(__cplusplus) && defined(__has_include) #if __has_include() #include