Skip to content

Commit e04adee

Browse files
committed
fixup! fixup! Remove problematic C functions from Pyodide builds
1 parent 460d75d commit e04adee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎build_sdl.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def python_machine() -> str:
6767
RE_PADDING = re.compile(r"padding\[[^;]*\];")
6868

6969
# Printf style functions cause issues on Pyodide builds
70-
RE_PRINTF = re.compile(r"extern [^;]*\*fmt, \.\.\.\)[^;]*;\n")
70+
RE_PRINTF = re.compile(r"^.*?\([^()]*\*fmt, \.\.\.\).*?;$", re.MULTILINE)
7171

7272
# These structs have an unusual size when packed by SDL on 32-bit platforms.
7373
FLEXIBLE_STRUCTS = (

0 commit comments

Comments
 (0)