mirror of
https://github.com/python/cpython.git
synced 2026-07-06 01:39:24 -04:00
gh-152433: Windows: enable mmapmodule for UWP (#152473)
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
Restores the ``mmap`` module when CPython is built from source for specific
|
||||
Windows API sets.
|
||||
@@ -338,7 +338,7 @@ _PyErr_SetFromNTSTATUS(ULONG status)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(MS_WINDOWS) && !defined(DONT_USE_SEH)
|
||||
#if defined(MS_WINDOWS_DESKTOP) && !defined(DONT_USE_SEH)
|
||||
#define HANDLE_INVALID_MEM(sourcecode) \
|
||||
do { \
|
||||
EXCEPTION_RECORD record; \
|
||||
@@ -364,7 +364,7 @@ do { \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
#if defined(MS_WINDOWS) && !defined(DONT_USE_SEH)
|
||||
#if defined(MS_WINDOWS_DESKTOP) && !defined(DONT_USE_SEH)
|
||||
#define HANDLE_INVALID_MEM_METHOD(self, sourcecode) \
|
||||
do { \
|
||||
EXCEPTION_RECORD record; \
|
||||
|
||||
+1
-1
@@ -140,7 +140,7 @@ struct _inittab _PyImport_Inittab[] = {
|
||||
{"itertools", PyInit_itertools},
|
||||
{"_collections", PyInit__collections},
|
||||
{"_symtable", PyInit__symtable},
|
||||
#if defined(MS_WINDOWS_DESKTOP) || defined(MS_WINDOWS_GAMES)
|
||||
#if defined(MS_WINDOWS_DESKTOP) || defined(MS_WINDOWS_GAMES) || defined(MS_WINDOWS_APP)
|
||||
{"mmap", PyInit_mmap},
|
||||
#endif
|
||||
{"_csv", PyInit__csv},
|
||||
|
||||
Reference in New Issue
Block a user