Skip to content

Commit 3545d44

Browse files
committed
mmapmodule: disable exceptions handling
`__try` and `__except` are not available in gcc
1 parent 50dc0eb commit 3545d44

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Modules/mmapmodule.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ do { \
256256
} while (0)
257257
#endif /* UNIX */
258258

259-
#if defined(MS_WINDOWS) && !defined(DONT_USE_SEH)
259+
#if defined(_MSC_VER) && !defined(DONT_USE_SEH)
260260
static DWORD
261261
filter_page_exception(EXCEPTION_POINTERS *ptrs, EXCEPTION_RECORD *record)
262262
{
@@ -289,7 +289,7 @@ filter_page_exception_method(mmap_object *self, EXCEPTION_POINTERS *ptrs,
289289
}
290290
#endif
291291

292-
#if defined(MS_WINDOWS) && !defined(DONT_USE_SEH)
292+
#if defined(_MSC_VER) && !defined(DONT_USE_SEH)
293293
#define HANDLE_INVALID_MEM(sourcecode) \
294294
do { \
295295
EXCEPTION_RECORD record; \
@@ -317,7 +317,7 @@ do { \
317317
} while (0)
318318
#endif
319319

320-
#if defined(MS_WINDOWS) && !defined(DONT_USE_SEH)
320+
#if defined(_MSC_VER) && !defined(DONT_USE_SEH)
321321
#define HANDLE_INVALID_MEM_METHOD(self, sourcecode) \
322322
do { \
323323
EXCEPTION_RECORD record; \

0 commit comments

Comments
 (0)