File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 2828PG_PixelFormatEnum pg_default_convert_format = 0 ;
2929
3030/* Custom exceptions */
31- static PyObject * pgExc_BufferError = NULL ;
31+ PyObject * pgExc_BufferError = NULL ;
3232
3333/* Only one instance of the state per process. */
3434static PyObject * pg_quit_functions = NULL ;
@@ -2081,13 +2081,6 @@ static PyMethodDef _base_methods[] = {
20812081 "return an array struct interface as an interface dictionary" },
20822082 {NULL , NULL , 0 , NULL }};
20832083
2084- #if defined(BUILD_STATIC ) && defined(NO_PYGAME_C_API )
2085- // in case of wasm+dynamic loading it could be a trampoline in the globals
2086- // generated at runtime.
2087- // when building static make global accessible symbol directly.
2088- static PyObject * pgExc_SDLError ;
2089- #endif
2090-
20912084MODINIT_DEFINE (base )
20922085{
20932086 PyObject * module , * apiobj , * atexit ;
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ typedef struct pg_view_internals_s {
5555} pgViewInternals ;
5656
5757extern PG_PixelFormatEnum pg_default_convert_format ;
58+ extern PyObject * pgExc_BufferError ;
5859extern SDL_Window * pg_default_window ;
5960extern pgSurfaceObject * pg_default_screen ;
6061
@@ -217,6 +218,13 @@ pg_SetDefaultConvertFormat(PG_PixelFormatEnum format);
217218PG_PixelFormatEnum
218219pg_GetDefaultConvertFormat (void );
219220
221+ #if defined(BUILD_STATIC ) && defined(NO_PYGAME_C_API )
222+ // in case of wasm+dynamic loading it could be a trampoline in the globals
223+ // generated at runtime.
224+ // when building static make global accessible symbol directly.
225+ extern PyObject * pgExc_SDLError ;
226+ #endif
227+
220228MODINIT_DEFINE (base );
221229
222230/*=======static inline function definitions=======*/
You can’t perform that action at this time.
0 commit comments