Commit 2907cb6
committed
[GTK][WPE] Fix MALLOC_HEAP_BREAKDOWN build with system headers defining boolean_t
https://bugs.webkit.org/show_bug.cgi?id=300884
Reviewed by Michael Catanzaro.
Remove useless boolean_t define and include stdbool.h instead.
This define can conflict with another define of boolean_t, from a
system header pulled by files using FastMalloc.
Also add missing extern "C" block.
* Source/WTF/wtf/malloc_heap_breakdown/main.cpp:
(malloc_zone_print):
* Source/WTF/wtf/malloc_heap_breakdown/malloc/malloc.h:
Canonical link: https://commits.webkit.org/301861@main1 parent bac2050 commit 2907cb6
2 files changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
| 299 | + | |
300 | 300 | | |
301 | 301 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
28 | 33 | | |
29 | 34 | | |
30 | 35 | | |
| |||
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
36 | | - | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
| |||
79 | 83 | | |
80 | 84 | | |
81 | 85 | | |
82 | | - | |
| 86 | + | |
83 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
0 commit comments