Skip to content

Commit e7f3162

Browse files
committed
Fix NULL includes in EGL test stubs
1 parent b89b276 commit e7f3162

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/test_build.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def _write_egl_stub(directory: Path) -> Path:
8686
stub_path.write_text(
8787
textwrap.dedent(
8888
"""
89+
#include <stddef.h>
8990
#define KHRONOS_STATIC 1
9091
#include <EGL/egl.h>
9192
@@ -174,6 +175,7 @@ def test_c_program_compiles_with_glatter_c(tmp_path: Path) -> None:
174175
c_source.write_text(
175176
textwrap.dedent(
176177
"""
178+
#include <stddef.h>
177179
#include <glatter/glatter.h>
178180
179181
static void noop_logger(const char* message) {
@@ -816,6 +818,7 @@ def test_windows_egl_gl_compiles_with_glatter_c(tmp_path: Path) -> None:
816818
c_source.write_text(
817819
textwrap.dedent(
818820
"""
821+
#include <stddef.h>
819822
#include <glatter/glatter.h>
820823
821824
static void noop_logger(const char* message) {

0 commit comments

Comments
 (0)