Skip to content

Commit 08dced5

Browse files
committed
Make checks for <version> C++ specific.
1 parent 6d01556 commit 08dced5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: include/boost/config/detail/suffix.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1202,7 +1202,7 @@ namespace std{ using ::type_info; }
12021202
#endif
12031203
#endif
12041204

1205-
#ifdef __has_include
1205+
#if defined(__cplusplus) && defined(__has_include)
12061206
#if !__has_include(<version>)
12071207
# define BOOST_NO_CXX20_HDR_VERSION
12081208
#else

Diff for: include/boost/config/stdlib/libcpp.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
# define BOOST_NO_CXX98_BINDERS
105105
#endif
106106

107-
#ifdef __has_include
107+
#if defined(__cplusplus) && defined(__has_include)
108108
#if __has_include(<version>)
109109
#include <version>
110110

0 commit comments

Comments
 (0)