commit | a2470d0ad94b3424ecfa2b60e34b3b248f4d4426 | [log] [tgz] |
---|---|---|
author | Sylvain Becker <sylvain.becker@gmail.com> | Wed Jan 27 09:34:23 2021 +0100 |
committer | Sylvain Becker <sylvain.becker@gmail.com> | Wed Jan 27 09:34:23 2021 +0100 |
tree | 28156d01b515ebf0ab41583c0ff7583681a85ce1 | |
parent | 944650669960d4bb9173de1c7ea40dddb6069055 [diff] |
SDL_SoftStretch: disable asm path if mprotect isn't available (see bug #3816)
diff --git a/src/video/SDL_stretch.c b/src/video/SDL_stretch.c index 1c99766..1d3610d 100644 --- a/src/video/SDL_stretch.c +++ b/src/video/SDL_stretch.c
@@ -46,6 +46,10 @@ # undef USE_ASM_STRETCH # endif # endif +/* But it doesn't work if mprotect isn't available */ +# if !defined(HAVE_MPROTECT) && defined(USE_ASM_STRETCH) +# undef USE_ASM_STRETCH +# endif #endif #ifdef USE_ASM_STRETCH