diff --git a/libcxx/test/libcxx/feature_test_macro/version_header.sh.py b/libcxx/test/libcxx/feature_test_macro/version_header.sh.py index 24d3981f81aeb..1e53d5fd92830 100644 --- a/libcxx/test/libcxx/feature_test_macro/version_header.sh.py +++ b/libcxx/test/libcxx/feature_test_macro/version_header.sh.py @@ -30,8 +30,8 @@ def test(output, expected): // //===----------------------------------------------------------------------===// -#ifndef _LIBCPP_VERSION -#define _LIBCPP_VERSION +#ifndef _LIBCPP_VERSIONH +#define _LIBCPP_VERSIONH #include <__config> @@ -69,6 +69,6 @@ def test(output, expected): // define __cpp_lib_missing_FTM_in_older_standard 2026L #endif // _LIBCPP_STD_VER >= 26 -#endif // _LIBCPP_VERSION +#endif // _LIBCPP_VERSIONH """, ) diff --git a/libcxx/utils/generate_feature_test_macro_components.py b/libcxx/utils/generate_feature_test_macro_components.py index 53fd44291b216..0b5c0f107134b 100755 --- a/libcxx/utils/generate_feature_test_macro_components.py +++ b/libcxx/utils/generate_feature_test_macro_components.py @@ -2230,8 +2230,8 @@ def version_header(self) -> str: // //===----------------------------------------------------------------------===// -#ifndef _LIBCPP_VERSION -#define _LIBCPP_VERSION +#ifndef _LIBCPP_VERSIONH +#define _LIBCPP_VERSIONH #include <__config> @@ -2241,7 +2241,7 @@ def version_header(self) -> str: {feature_test_macros} -#endif // _LIBCPP_VERSION +#endif // _LIBCPP_VERSIONH """ return template.format( feature_test_macros=generate_version_header_implementation(