only define MIN/MAX if they are not defined yet This closes #72
diff --git a/tommath_private.h b/tommath_private.h
index bc7cd35..0e0059b 100644
--- a/tommath_private.h
+++ b/tommath_private.h
@@ -18,9 +18,13 @@
#include <tommath.h>
#include <ctype.h>
-#define MIN(x,y) (((x) < (y)) ? (x) : (y))
+#ifndef MIN
+ #define MIN(x,y) (((x) < (y)) ? (x) : (y))
+#endif
-#define MAX(x,y) (((x) > (y)) ? (x) : (y))
+#ifndef MAX
+ #define MAX(x,y) (((x) > (y)) ? (x) : (y))
+#endif
#ifdef __cplusplus
extern "C" {