lrint_fix.patch 496 B

12345678910111213
  1. diff --git a/SDL2_gfxPrimitives.c b/SDL2_gfxPrimitives.c
  2. index c6f7894..0ab6b22 100644
  3. --- a/SDL2_gfxPrimitives.c
  4. +++ b/SDL2_gfxPrimitives.c
  5. @@ -1757,7 +1757,7 @@ int filledCircleRGBA(SDL_Renderer * renderer, Sint16 x, Sint16 y, Sint16 rad, Ui
  6. /* ----- AA Ellipse */
  7. /* Windows targets do not have lrint, so provide a local inline version */
  8. -#if defined(_MSC_VER)
  9. +#if defined(_MSC_VER) && _MSC_VER < 1928
  10. /* Detect 64bit and use intrinsic version */
  11. #ifdef _M_X64
  12. #include <emmintrin.h>