diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/sdl2-gfx/002-use-the-lrintf-intrinsic.patch | |
Diffstat (limited to 'vcpkg/ports/sdl2-gfx/002-use-the-lrintf-intrinsic.patch')
| -rw-r--r-- | vcpkg/ports/sdl2-gfx/002-use-the-lrintf-intrinsic.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vcpkg/ports/sdl2-gfx/002-use-the-lrintf-intrinsic.patch b/vcpkg/ports/sdl2-gfx/002-use-the-lrintf-intrinsic.patch new file mode 100644 index 0000000..51af54d --- /dev/null +++ b/vcpkg/ports/sdl2-gfx/002-use-the-lrintf-intrinsic.patch @@ -0,0 +1,14 @@ +diff --git a/SDL2_gfxPrimitives.c b/SDL2_gfxPrimitives.c +index d8afb10..6c88288 100644 +--- a/SDL2_gfxPrimitives.c ++++ b/SDL2_gfxPrimitives.c +@@ -1757,7 +1757,8 @@ 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) ++/* MSVC pre 16.8 do not have lrint */ ++#if defined(_MSC_VER) && _MSC_VER < 1928 + /* Detect 64bit and use intrinsic version */ + #ifdef _M_X64 + #include <emmintrin.h> |