From: Matthew Fernandez Date: Sat, 3 Dec 2022 21:10:53 +0000 (-0800) Subject: neatogen _neato_set_aspect: replace 'MIN' with its stdlib equivalent X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3e1adf99faebb1f0882c30f30529c40302c032a;p=graphviz neatogen _neato_set_aspect: replace 'MIN' with its stdlib equivalent --- diff --git a/lib/neatogen/neatosplines.c b/lib/neatogen/neatosplines.c index 2030e45f4..b0c9fffd2 100644 --- a/lib/neatogen/neatosplines.c +++ b/lib/neatogen/neatosplines.c @@ -12,6 +12,7 @@ #include "config.h" #include #include +#include #include #include #include @@ -1022,7 +1023,7 @@ static bool _neato_set_aspect(graph_t * g) xf = (double) GD_drawing(g)->size.x / GD_bb(g).UR.x; yf = (double) GD_drawing(g)->size.y / GD_bb(g).UR.y; if (xf > 1.0 && yf > 1.0) { - double scale = MIN(xf, yf); + double scale = fmin(xf, yf); xf = yf = scale; } else return translated;