Added #ifdef around MAX definition to avoid compiler warnings

This commit is contained in:
adamdunkels 2007-11-26 23:22:41 +00:00
parent 2c4aba1b1b
commit 58d6310979
2 changed files with 6 additions and 2 deletions

View File

@ -33,7 +33,7 @@
* *
* This file is part of the Contiki operating system. * This file is part of the Contiki operating system.
* *
* $Id: ipolite.c,v 1.2 2007/09/14 20:26:52 nvt-se Exp $ * $Id: ipolite.c,v 1.3 2007/11/26 23:22:41 adamdunkels Exp $
*/ */
/** /**
@ -49,7 +49,9 @@
#include <string.h> #include <string.h>
#ifndef MAX
#define MAX(a,b) ((a)>(b)?(a):(b)) #define MAX(a,b) ((a)>(b)?(a):(b))
#endif /* MAX */
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
static void static void

View File

@ -33,7 +33,7 @@
* *
* This file is part of the Contiki operating system. * This file is part of the Contiki operating system.
* *
* $Id: polite.c,v 1.2 2007/10/19 13:50:01 nifi Exp $ * $Id: polite.c,v 1.3 2007/11/26 23:22:41 adamdunkels Exp $
*/ */
/** /**
@ -49,7 +49,9 @@
#include <string.h> #include <string.h>
#ifndef MAX
#define MAX(a,b) ((a)>(b)?(a):(b)) #define MAX(a,b) ((a)>(b)?(a):(b))
#endif /* MAX */
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
static void static void