Commit c24e641
authored
Fix UT compilation errors with GCC 13 due to missing <cstdint> includes (#2979)
GCC 13 no longer transitively includes <cstdint> from other standard
library headers. This causes compilation failures for code using types
like uint32_t and uintptr_t without explicitly including <cstdint>.
This commit adds the missing #include <cstdint> directives to:
- test/baidu_thread_local_unittest.cpp
- src/bthread/list_of_abafree_id.h
The errors were:
- error: 'uintptr_t' was not declared in this scope
- error: 'uint32_t' does not name a type
This change ensures compatibility with GCC 13 while maintaining
backward compatibility with older compiler versions.
Reference: https://gcc.gnu.org/gcc-13/porting_to.html1 parent 66e9635 commit c24e641
File tree
2 files changed
+2
-1
lines changed- src/bthread
- test
2 files changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
0 commit comments