diff options
author | Bill Welliver <hww3@fjord.riverweb.com> | 2013-03-22 15:33:54 -0400 |
---|---|---|
committer | Bill Welliver <hww3@fjord.riverweb.com> | 2013-03-22 15:33:54 -0400 |
commit | 66c3de0f1328702655ba606e2a0391e1acb88e87 (patch) | |
tree | 116f9791ac5487a8ec442fab2076f4f2393b3ae4 | |
parent | 73ead2193b7bc07a4f5db35de9fac9638eb474e1 (diff) | |
download | ejdb-66c3de0f1328702655ba606e2a0391e1acb88e87.tar.gz ejdb-66c3de0f1328702655ba606e2a0391e1acb88e87.tar.bz2 ejdb-66c3de0f1328702655ba606e2a0391e1acb88e87.zip |
Solaris does not include MAX and MIN macros in an easy to use location.
-rw-r--r-- | tcejdb/myconf.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tcejdb/myconf.h b/tcejdb/myconf.h index 4db7927..bd46046 100644 --- a/tcejdb/myconf.h +++ b/tcejdb/myconf.h @@ -314,7 +314,14 @@ int _tc_dummyfunc(void); int _tc_dummyfuncv(int a, ...); +/* MAX and MIN are defined in a really funky place in Solaris. */ +#ifndef MIN +#define MIN(a, b) ((a) < (b) ? (a) : (b)) +#endif +#ifndef MAX +#define MAX(a, b) ((a) > (b) ? (a) : (b)) +#endif /************************************************************************************************* * notation of filesystems |