Skip to content

Commit 3cfbc8a

Browse files
committed
Should fix WASM build
1 parent e7bfb29 commit 3cfbc8a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src_c/base.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,13 @@ pg_SetDefaultConvertFormat(PG_PixelFormatEnum format);
217217
PG_PixelFormatEnum
218218
pg_GetDefaultConvertFormat(void);
219219

220+
#if defined(BUILD_STATIC) && defined(NO_PYGAME_C_API)
221+
// in case of wasm+dynamic loading it could be a trampoline in the globals
222+
// generated at runtime.
223+
// when building static make global accessible symbol directly.
224+
static PyObject *pgExc_SDLError;
225+
#endif
226+
220227
MODINIT_DEFINE(base);
221228

222229
/*=======static inline function definitions=======*/

0 commit comments

Comments
 (0)