diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-04-24 14:09:07 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:04:16 -0500 |
commit | e2e3a8e007ac2a9533f4205622a6e17d57845fcc (patch) | |
tree | 1480089739669eabb9cdd75f800b1a922a419f88 /source4/lib/replace/replace.h | |
parent | d6687d1b87bffb1079ded20cc31e4a507f551b44 (diff) | |
download | samba-e2e3a8e007ac2a9533f4205622a6e17d57845fcc.tar.gz samba-e2e3a8e007ac2a9533f4205622a6e17d57845fcc.tar.bz2 samba-e2e3a8e007ac2a9533f4205622a6e17d57845fcc.zip |
r15200: Move MIN/MAX macros to libreplace as some systems have them
in sys/param.h
(This used to be commit 3f0396aade82a92a375275059baf8500de1b23f0)
Diffstat (limited to 'source4/lib/replace/replace.h')
-rw-r--r-- | source4/lib/replace/replace.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source4/lib/replace/replace.h b/source4/lib/replace/replace.h index 814936c49f..218fd4cb2a 100644 --- a/source4/lib/replace/replace.h +++ b/source4/lib/replace/replace.h @@ -213,4 +213,18 @@ typedef bool int; #define __FUNCTION__ ("") #endif +#ifdef HAVE_SYS_PARAM_H +#include <sys/param.h> +#endif + +#ifndef MIN +#define MIN(a,b) ((a)<(b)?(a):(b)) +#endif + +#ifndef MAX +#define MAX(a,b) ((a)>(b)?(a):(b)) +#endif + + + #endif |