[libc++] Fix test FTM header guard

That template is actually not used to generate the version header yet,
but we can at least fix the include guards which are clearly incorrect.
This commit is contained in:
Louis Dionne
2024-12-11 12:39:43 -05:00
parent 66edefaee5
commit 7b2d592a19
2 changed files with 6 additions and 6 deletions

View File

@@ -30,8 +30,8 @@ test(
//
//===----------------------------------------------------------------------===//
#ifndef _LIBCPP_VERSION
#define _LIBCPP_VERSION
#ifndef _LIBCPP_VERSIONH
#define _LIBCPP_VERSIONH
#include <__config>
@@ -69,6 +69,6 @@ test(
// define __cpp_lib_missing_FTM_in_older_standard 2026L
#endif // _LIBCPP_STD_VER >= 26
#endif // _LIBCPP_VERSION
#endif // _LIBCPP_VERSIONH
""",
)

View File

@@ -2230,8 +2230,8 @@ class FeatureTestMacros:
//
//===----------------------------------------------------------------------===//
#ifndef _LIBCPP_VERSION
#define _LIBCPP_VERSION
#ifndef _LIBCPP_VERSIONH
#define _LIBCPP_VERSIONH
#include <__config>
@@ -2241,7 +2241,7 @@ class FeatureTestMacros:
{feature_test_macros}
#endif // _LIBCPP_VERSION
#endif // _LIBCPP_VERSIONH
"""
return template.format(
feature_test_macros=generate_version_header_implementation(