File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ _PyErr_SetFromNTSTATUS(ULONG status)
338338}
339339#endif
340340
341- #if defined(MS_WINDOWS ) && !defined(DONT_USE_SEH )
341+ #if defined(MS_WINDOWS_DESKTOP ) && !defined(DONT_USE_SEH )
342342#define HANDLE_INVALID_MEM (sourcecode ) \
343343do { \
344344 EXCEPTION_RECORD record; \
@@ -364,7 +364,7 @@ do { \
364364} while (0)
365365#endif
366366
367- #if defined(MS_WINDOWS ) && !defined(DONT_USE_SEH )
367+ #if defined(MS_WINDOWS_DESKTOP ) && !defined(DONT_USE_SEH )
368368#define HANDLE_INVALID_MEM_METHOD (self , sourcecode ) \
369369do { \
370370 EXCEPTION_RECORD record; \
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ struct _inittab _PyImport_Inittab[] = {
140140 {"itertools" , PyInit_itertools },
141141 {"_collections" , PyInit__collections },
142142 {"_symtable" , PyInit__symtable },
143- #if defined(MS_WINDOWS_DESKTOP ) || defined (MS_WINDOWS_GAMES )
143+ #if defined(MS_WINDOWS_DESKTOP ) || defined (MS_WINDOWS_GAMES ) || defined ( MS_WINDOWS_APP )
144144 {"mmap" , PyInit_mmap },
145145#endif
146146 {"_csv" , PyInit__csv },
You can’t perform that action at this time.
0 commit comments