Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Restores the ``mmap`` module when CPython is built from source for specific
Windows API sets.
4 changes: 2 additions & 2 deletions Modules/mmapmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand All @@ -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; \
Expand Down
2 changes: 1 addition & 1 deletion PC/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down
Loading