diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/generic.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/includes/generic.h b/includes/generic.h index 04c91fa..5abb92b 100644 --- a/includes/generic.h +++ b/includes/generic.h @@ -77,4 +77,12 @@ extern char verbosity; void printm(int level, char * fmt, ...); char ** split(char * s, char t); +#ifndef MAX +#define MAX(__a,__b) ((__a)<(__b)?(__b):(__a)) +#endif + +#ifndef MIN +#define MIN(__a,__b) ((__a)>(__b)?(__b):(__a)) +#endif + #endif |