[Olsr-cvs] olsrd-current/src defs.h,1.64,1.65
Bernd Petrovitsch
(spam-protected)
Sat Oct 20 23:07:27 CEST 2007
Update of /cvsroot/olsrd/olsrd-current/src
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv28939/src
Modified Files:
defs.h
Log Message:
* added a MIN and MAX macro
Index: defs.h
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/defs.h,v
retrieving revision 1.64
retrieving revision 1.65
diff -C2 -d -r1.64 -r1.65
*** defs.h 13 Oct 2007 12:31:04 -0000 1.64
--- defs.h 20 Oct 2007 21:07:24 -0000 1.65
***************
*** 102,105 ****
--- 102,111 ----
#define ARRAYSIZE(x) (sizeof(x)/sizeof(*(x)))
+ #ifndef MAX
+ #define MAX(x,y) ((x) > (y) ? (x) : (y))
+ #endif
+ #ifndef MIN
+ #define MIN(x,y) ((x) < (y) ? (x) : (y))
+ #endif
/*
More information about the Olsr-cvs
mailing list