Skip to content

Commit 7b2d592

Browse files
committed
[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.
1 parent 66edefa commit 7b2d592

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

libcxx/test/libcxx/feature_test_macro/version_header.sh.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ def test(output, expected):
3030
//
3131
//===----------------------------------------------------------------------===//
3232
33-
#ifndef _LIBCPP_VERSION
34-
#define _LIBCPP_VERSION
33+
#ifndef _LIBCPP_VERSIONH
34+
#define _LIBCPP_VERSIONH
3535
3636
#include <__config>
3737
@@ -69,6 +69,6 @@ def test(output, expected):
6969
// define __cpp_lib_missing_FTM_in_older_standard 2026L
7070
#endif // _LIBCPP_STD_VER >= 26
7171
72-
#endif // _LIBCPP_VERSION
72+
#endif // _LIBCPP_VERSIONH
7373
""",
7474
)

libcxx/utils/generate_feature_test_macro_components.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2230,8 +2230,8 @@ def version_header(self) -> str:
22302230
//
22312231
//===----------------------------------------------------------------------===//
22322232
2233-
#ifndef _LIBCPP_VERSION
2234-
#define _LIBCPP_VERSION
2233+
#ifndef _LIBCPP_VERSIONH
2234+
#define _LIBCPP_VERSIONH
22352235
22362236
#include <__config>
22372237
@@ -2241,7 +2241,7 @@ def version_header(self) -> str:
22412241
22422242
{feature_test_macros}
22432243
2244-
#endif // _LIBCPP_VERSION
2244+
#endif // _LIBCPP_VERSIONH
22452245
"""
22462246
return template.format(
22472247
feature_test_macros=generate_version_header_implementation(

0 commit comments

Comments
 (0)