From bc273e17510c7680bcffee75858d374aa93f7e4b Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 4 Jan 2016 22:24:03 -0500 Subject: sim: unify min/max macros Import defines from gdb/defs.h to the sim core so we can delete the various copies that already exist. --- sim/bfin/dv-bfin_emac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim/bfin/dv-bfin_emac.c') diff --git a/sim/bfin/dv-bfin_emac.c b/sim/bfin/dv-bfin_emac.c index ec40bc5..fd3fcd3 100644 --- a/sim/bfin/dv-bfin_emac.c +++ b/sim/bfin/dv-bfin_emac.c @@ -413,7 +413,7 @@ bfin_emac_dma_read_buffer (struct hw *me, void *dest, int space, if (ret < 0) return 0; ret += 4; /* include crc */ - pad_ret = MAX (ret + 4, 64); + pad_ret = max (ret + 4, 64); len = pad_ret; memcpy (dest, &len, 2); -- cgit v1.1