Skip to content

Commit

Permalink
[libc++] Fix test FTM header guard
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ldionne committed Dec 11, 2024
1 parent 66edefa commit 7b2d592
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions libcxx/test/libcxx/feature_test_macro/version_header.sh.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def test(output, expected):
//
//===----------------------------------------------------------------------===//
#ifndef _LIBCPP_VERSION
#define _LIBCPP_VERSION
#ifndef _LIBCPP_VERSIONH
#define _LIBCPP_VERSIONH
#include <__config>
Expand Down Expand Up @@ -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
""",
)
6 changes: 3 additions & 3 deletions libcxx/utils/generate_feature_test_macro_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -2230,8 +2230,8 @@ def version_header(self) -> str:
//
//===----------------------------------------------------------------------===//
#ifndef _LIBCPP_VERSION
#define _LIBCPP_VERSION
#ifndef _LIBCPP_VERSIONH
#define _LIBCPP_VERSIONH
#include <__config>
Expand All @@ -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(
Expand Down

0 comments on commit 7b2d592

Please sign in to comment.