Skip to content

Commit bae47d4

Browse files
[libc] fix another build failure from using limits.h (llvm#84827)
My GCC build is failing with issues similar why we added our own. Looks like we missed one spot. See also: commit 72ce629 ("[libc] Add C23 limits.h header. (llvm#78887)")
1 parent 08dd645 commit bae47d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libc/test/src/__support/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ add_libc_test(
7878
SRCS
7979
integer_to_string_test.cpp
8080
DEPENDS
81+
libc.src.__support.CPP.limits
8182
libc.src.__support.CPP.string_view
8283
libc.src.__support.integer_literals
8384
libc.src.__support.integer_to_string

libc/test/src/__support/integer_to_string_test.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9+
#include "src/__support/CPP/limits.h"
910
#include "src/__support/CPP/span.h"
1011
#include "src/__support/CPP/string_view.h"
1112
#include "src/__support/UInt.h"
@@ -15,8 +16,6 @@
1516

1617
#include "test/UnitTest/Test.h"
1718

18-
#include "limits.h"
19-
2019
using LIBC_NAMESPACE::IntegerToString;
2120
using LIBC_NAMESPACE::cpp::span;
2221
using LIBC_NAMESPACE::cpp::string_view;

0 commit comments

Comments
 (0)