Update of /cvsroot/naviserver/naviserver/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14787/include
Modified Files:
ns.h
Log Message:
* include/ns.h:
* nsd/config.c:
* nsd/driver.c: Add definition of MIN and MAX macros used by
fastpath.c if not already defined, which aren't standard on
e.g. Linux. Convert config.c and driver.c to use this common
definition.
Index: ns.h
===================================================================
RCS file: /cvsroot/naviserver/naviserver/include/ns.h,v
retrieving revision 1.51
retrieving revision 1.52
diff -C2 -d -r1.51 -r1.52
*** ns.h 8 Oct 2005 12:06:07 -0000 1.51
--- ns.h 9 Oct 2005 04:42:30 -0000 1.52
***************
*** 250,253 ****
--- 250,259 ----
#define STREQ(a,b) (((*a) == (*b)) && (strcmp((a),(b)) == 0))
#define STRIEQ(a,b) (strcasecmp((a),(b)) == 0)
+ #ifndef MIN
+ # define MIN(x,y) ((x) > (y) ? (y) : (x))
+ #endif
+ #ifndef MAX
+ # define MAX(x,y) ((x) > (y) ? (x) : (y))
+ #endif
#define Ns_IndexCount(X) ((X)->n)
#define Ns_ListPush(elem,list) ((list)=Ns_ListCons((elem),(list)))
|