1
0
Эх сурвалжийг харах

SDL_SoftStretch: disable asm path if mprotect isn't available (see bug #3816)

Sylvain Becker 5 жил өмнө
parent
commit
5e3cf0d1f4

+ 4 - 0
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