put LWIP_MAX and LWIP_MIN macros in def.h and use these instead of locally declaring them in .c files

This commit is contained in:
jani
2003-05-27 13:44:08 +00:00
parent b0273c9209
commit 6719f10034
4 changed files with 3 additions and 7 deletions

View File

@@ -35,7 +35,8 @@
/* this might define NULL already */
#include "arch/cc.h"
#define UMAX(a, b) ((a) > (b) ? (a) : (b))
#define LWIP_MAX(x , y) (x) > (y) ? (x) : (y)
#define LWIP_MIN(x , y) (x) < (y) ? (x) : (y)
#ifndef NULL
#define NULL ((void *)0)