From 675ce7fc98136d7f83066fee54afe5bd362ebd2c Mon Sep 17 00:00:00 2001 From: Robert Winkler Date: Sat, 28 Feb 2026 16:19:11 -0700 Subject: [PATCH] Add prefix to problematic stb_truetype equal() func --- nuklear.h | 4 ++-- src/stb_truetype.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nuklear.h b/nuklear.h index 0c243f91..aee190eb 100644 --- a/nuklear.h +++ b/nuklear.h @@ -16225,7 +16225,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]); } @@ -16273,7 +16273,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; diff --git a/src/stb_truetype.h b/src/stb_truetype.h index bbf2284b..98011646 100644 --- a/src/stb_truetype.h +++ b/src/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;