summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Herlant <herlantj@gmail.com>2018-04-21 05:54:12 -0700
committerJoseph Herlant <aerostitch@users.noreply.github.com>2018-04-21 06:12:24 -0700
commit3a4ec2411e6d63e745e1eda5301b50ffb497c46d (patch)
treeedfd2e3ffae67d5a2f8fa98c19b5d4f30ab1b938
parent01749ffba818ce4da1e6c6674d621b2f03613443 (diff)
downloadnavit-3a4ec2411e6d63e745e1eda5301b50ffb497c46d.tar.gz
Fix:gui_internal:use max/min instead of fmax/fmin as absent from wince
-rw-r--r--navit/gui/internal/gui_internal_command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/navit/gui/internal/gui_internal_command.c b/navit/gui/internal/gui_internal_command.c
index 2fd0fabbe..1eb1163cb 100644
--- a/navit/gui/internal/gui_internal_command.c
+++ b/navit/gui/internal/gui_internal_command.c
@@ -581,8 +581,8 @@ gui_internal_cmd2_route_height_profile(struct gui_priv *this, char *function, st
diagram_points=diagram_point;
diagram_points_count ++;
dbg(lvl_debug,"%d %d\n", diagram_point->c.x, diagram_point->c.y);
- max_ele=fmax(max_ele, diagram_point->c.y);
- min_ele=fmin(min_ele, diagram_point->c.y);
+ max_ele=MAX(max_ele, diagram_point->c.y);
+ min_ele=MIN(min_ele, diagram_point->c.y);
distance=diagram_point->c.x;
}
}