From 8da644f44279d4e566a77f4227173915ff49a7c6 Mon Sep 17 00:00:00 2001 From: Adrian Lees Date: Thu, 21 Apr 2005 21:36:23 +0000 Subject: [project @ 2005-04-21 21:36:23 by adrianl] Dragging URLs into toolbar URL icon; keyboard actions in textareas conform to Wimp's icon editing; display of scale % fixed for 120% svn path=/import/netsurf/; revision=1676 --- utils/utils.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'utils/utils.h') diff --git a/utils/utils.h b/utils/utils.h index 278446e0c..e005fcbf7 100644 --- a/utils/utils.h +++ b/utils/utils.h @@ -19,6 +19,15 @@ #ifndef NOF_ELEMENTS #define NOF_ELEMENTS(array) (sizeof(array)/sizeof(*(array))) #endif +#ifndef ABS +#define ABS(x) (((x)>0)?(x):(-(x))) +#endif +#ifndef min +#define min(x,y) (((x)<(y))?(x):(y)) +#endif +#ifndef max +#define max(x,y) (((x)>(y))?(x):(y)) +#endif char * strip(char * const s); int whitespace(const char * str); -- cgit v1.2.3