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 28
28
PG_PixelFormatEnum pg_default_convert_format = 0 ;
29
29
30
30
/* Custom exceptions */
31
- static PyObject * pgExc_BufferError = NULL ;
31
+ PyObject * pgExc_BufferError = NULL ;
32
32
33
33
/* Only one instance of the state per process. */
34
34
static PyObject * pg_quit_functions = NULL ;
@@ -2081,13 +2081,6 @@ static PyMethodDef _base_methods[] = {
2081
2081
"return an array struct interface as an interface dictionary" },
2082
2082
{NULL , NULL , 0 , NULL }};
2083
2083
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
-
2091
2084
MODINIT_DEFINE (base )
2092
2085
{
2093
2086
PyObject * module , * apiobj , * atexit ;
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ typedef struct pg_view_internals_s {
55
55
} pgViewInternals ;
56
56
57
57
extern PG_PixelFormatEnum pg_default_convert_format ;
58
+ extern PyObject * pgExc_BufferError ;
58
59
extern SDL_Window * pg_default_window ;
59
60
extern pgSurfaceObject * pg_default_screen ;
60
61
@@ -217,6 +218,13 @@ pg_SetDefaultConvertFormat(PG_PixelFormatEnum format);
217
218
PG_PixelFormatEnum
218
219
pg_GetDefaultConvertFormat (void );
219
220
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
+
220
228
MODINIT_DEFINE (base );
221
229
222
230
/*=======static inline function definitions=======*/
You can’t perform that action at this time.
0 commit comments