mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
[spine-c] Fix redefinition of macro MIN and MAX
This commit is contained in:
parent
83d0adf6dd
commit
e76b7e4684
@ -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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user