diff --git a/spine-c/include/spine/extension.h b/spine-c/include/spine/extension.h index b73bb02af..1ec88cd80 100644 --- a/spine-c/include/spine/extension.h +++ b/spine-c/include/spine/extension.h @@ -83,8 +83,12 @@ #define SIN_DEG(A) SIN((A) * DEG_RAD) #define COS_DEG(A) COS((A) * DEG_RAD) #define CLAMP(x, min, max) ((x) < (min) ? (min) : ((x) > (max) ? (max) : (x))) +#ifndef MIN #define MIN(x, y) ((x) < (y) ? (x) : (y)) +#endif +#ifndef MAX #define MAX(x, y) ((x) > (y) ? (x) : (y)) +#endif #define UNUSED(x) (void)(x)