From: Zoran V. <vas...@us...> - 2005-10-15 16:01:14
|
Update of /cvsroot/naviserver/naviserver/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18575 Modified Files: nsthread.h Log Message: Added definition of MIN/MAX macros since Solaris does not define those in sys/param.h like other OS'es Index: nsthread.h =================================================================== RCS file: /cvsroot/naviserver/naviserver/include/nsthread.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** nsthread.h 9 Oct 2005 22:14:53 -0000 1.10 --- nsthread.h 15 Oct 2005 16:01:02 -0000 1.11 *************** *** 149,152 **** --- 149,164 ---- /* + * Some systems (Solaris) lack useful MIN/MAX macros + * normally defined in sys/param.h so do them here. + */ + + #ifndef MIN + # define MIN(a,b) (((a)<(b))?(a):(b)) + #endif + #ifndef MAX + # define MAX(a,b) (((a)>(b))?(a):(b)) + #endif + + /* * Various constants. */ |