encoding.c (MAX, [...]): #undef before defining.
2002-04-19 David O'Brien <obrien@FreeBSD.org> * encoding.c (MAX, MIN, ROUNDING): #undef before defining. Approved by: David S. Miller <davem@redhat.com> Message-Id: <20020419.184825.67430590.davem@redhat.com> From-SVN: r52648
This commit is contained in:
parent
04428ad4ac
commit
d0d091ae08
@ -1,3 +1,7 @@
|
||||
2002-04-19 David O'Brien <obrien@FreeBSD.org>
|
||||
|
||||
* encoding.c (MAX, MIN, ROUNDING): #undef before defining.
|
||||
|
||||
2002-04-09 Hans-Peter Nilsson <hp@bitrange.com>
|
||||
|
||||
PR objc/6107
|
||||
|
@ -30,14 +30,17 @@ Boston, MA 02111-1307, USA. */
|
||||
#include "objc-api.h"
|
||||
#include "encoding.h"
|
||||
|
||||
#undef MAX
|
||||
#define MAX(X, Y) \
|
||||
({ typeof(X) __x = (X), __y = (Y); \
|
||||
(__x > __y ? __x : __y); })
|
||||
|
||||
#undef MIN
|
||||
#define MIN(X, Y) \
|
||||
({ typeof(X) __x = (X), __y = (Y); \
|
||||
(__x < __y ? __x : __y); })
|
||||
|
||||
#undef ROUND
|
||||
#define ROUND(V, A) \
|
||||
({ typeof(V) __v=(V); typeof(A) __a=(A); \
|
||||
__a*((__v+__a-1)/__a); })
|
||||
|
Loading…
Reference in New Issue
Block a user