Add patch to fix lrint at libsdl_gfx (#411)
parent
f874fe763a
commit
4012d2044c
2 changed files with 14 additions and 0 deletions
@ -0,0 +1,13 @@ |
|||||||
|
diff --git a/SDL2_gfxPrimitives.c b/SDL2_gfxPrimitives.c
|
||||||
|
index c6f7894..0ab6b22 100644
|
||||||
|
--- a/SDL2_gfxPrimitives.c
|
||||||
|
+++ b/SDL2_gfxPrimitives.c
|
||||||
|
@@ -1757,7 +1757,7 @@ int filledCircleRGBA(SDL_Renderer * renderer, Sint16 x, Sint16 y, Sint16 rad, Ui
|
||||||
|
/* ----- AA Ellipse */
|
||||||
|
|
||||||
|
/* Windows targets do not have lrint, so provide a local inline version */
|
||||||
|
-#if defined(_MSC_VER)
|
||||||
|
+#if defined(_MSC_VER) && _MSC_VER < 1928
|
||||||
|
/* Detect 64bit and use intrinsic version */
|
||||||
|
#ifdef _M_X64
|
||||||
|
#include <emmintrin.h>
|
Loading…
Reference in new issue