Skip to content

Commit 35cb3b4

Browse files
committed
Fix building in C23 (fixes #340)
1 parent 067baef commit 35cb3b4

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ v0.7.1 (unreleased):
33
- Modernize packaging.
44
- Explicitly support $WITH_EXTENSION/$WITHOUT_EXTENSION to control whether the
55
C tokenizer should be built.
6+
- Fix building in C23 (e.g. in GCC 15). (#340)
67

78
v0.7.0 (released June 28, 2025):
89

docs/changelog.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Unreleased
1010
- Modernize packaging.
1111
- Explicitly support ``$WITH_EXTENSION`` / ``$WITHOUT_EXTENSION`` to control
1212
whether the C tokenizer should be built.
13+
- Fix building in C23 (e.g. in GCC 15).
14+
(`#340 <https://github.com/earwig/mwparserfromhell/issues/340>`_)
1315

1416
v0.7.0
1517
------

src/mwparserfromhell/parser/ctokenizer/avl_tree.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
#define false 0
2222
#define true 1
2323

24+
#if __STDC_VERSION__ < 202000
2425
typedef int bool;
26+
#endif
2527

2628
#include "avl_tree.h"
2729

0 commit comments

Comments
 (0)