Bugfix: backwards definition of MIN macro (quite embarassing)
This commit is contained in:
parent
b98c18e616
commit
45e32894a0
2 changed files with 5 additions and 5 deletions
|
@ -33,7 +33,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: ipolite.c,v 1.12 2009/02/11 11:08:56 adamdunkels Exp $
|
||||
* $Id: ipolite.c,v 1.13 2009/03/02 11:22:09 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -54,7 +54,7 @@
|
|||
#endif /* MAX */
|
||||
|
||||
#ifndef MIN
|
||||
#define MIN(a, b) ((a) > (b)? (a) : (b))
|
||||
#define MIN(a, b) ((a) < (b)? (a) : (b))
|
||||
#endif /* MIN */
|
||||
|
||||
#define DEBUG 0
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: polite.c,v 1.7 2009/02/11 11:08:56 adamdunkels Exp $
|
||||
* $Id: polite.c,v 1.8 2009/03/02 11:22:09 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -50,11 +50,11 @@
|
|||
#include <string.h>
|
||||
|
||||
#ifndef MAX
|
||||
#define MAX(a,b) ((a)>(b)?(a):(b))
|
||||
#define MAX(a,b) ((a) > (b)? (a) : (b))
|
||||
#endif /* MAX */
|
||||
|
||||
#ifndef MIN
|
||||
#define MIN(a, b) ((a) > (b)? (a) : (b))
|
||||
#define MIN(a, b) ((a) < (b)? (a) : (b))
|
||||
#endif /* MIN */
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue