diff -Naur blender-4.5.2/source/blender/blenlib/intern/math_geom.cc blender-4.5.2-patched/source/blender/blenlib/intern/math_geom.cc
--- blender-4.5.2/source/blender/blenlib/intern/math_geom.cc	2025-08-26 12:23:39.682786400 +0300
+++ blender-4.5.2-patched/source/blender/blenlib/intern/math_geom.cc	2025-08-26 12:24:30.004004900 +0300
@@ -21,6 +21,9 @@
 
 #include "BLI_strict_flags.h" /* IWYU pragma: keep. Keep last. */
 
+#undef near
+#undef far
+
 /********************************** Polygons *********************************/
 
 void cross_tri_v3(float n[3], const float v1[3], const float v2[3], const float v3[3])
