From 8c08f23bb319f19c685c76664b98f0a14910f4fd Mon Sep 17 00:00:00 2001 From: sleeptightAnsiC <91839286+sleeptightAnsiC@users.noreply.github.com> Date: Thu, 5 Mar 2026 12:52:43 +0100 Subject: [PATCH] stb_truetype: rename internal symbol equal() to stbtt__equal() ...in order to avoid potential symbol conflicts. Fixes: https://github.com/nothings/stb/issues/1898 Origin: https://github.com/Immediate-Mode-UI/Nuklear/pull/905 Co-authored-by: Robert Winkler --- stb_truetype.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stb_truetype.h b/stb_truetype.h index 90a5c2e2b3..6b13a20fc4 100644 --- a/stb_truetype.h +++ b/stb_truetype.h @@ -4459,7 +4459,7 @@ static int stbtt__ray_intersect_bezier(float orig[2], float ray[2], float q0[2], } } -static int equal(float *a, float *b) +static int stbtt__equal(float *a, float *b) { return (a[0] == b[0] && a[1] == b[1]); } @@ -4507,7 +4507,7 @@ static int stbtt__compute_crossings_x(float x, float y, int nverts, stbtt_vertex q1[1] = (float)y1; q2[0] = (float)x2; q2[1] = (float)y2; - if (equal(q0,q1) || equal(q1,q2)) { + if (stbtt__equal(q0,q1) || stbtt__equal(q1,q2)) { x0 = (int)verts[i-1].x; y0 = (int)verts[i-1].y; x1 = (int)verts[i ].x;