mirror of
git://git.suckless.org/sbase
synced 2024-12-25 00:12:42 +00:00
Undef MIN/MAX in case they are defined somewhere else
This commit is contained in:
parent
7ffe164106
commit
49c91462b3
2
util.h
2
util.h
@ -5,7 +5,9 @@
|
|||||||
|
|
||||||
#define UTF8_POINT(c) (((c) & 0xc0) != 0x80)
|
#define UTF8_POINT(c) (((c) & 0xc0) != 0x80)
|
||||||
|
|
||||||
|
#undef MIN
|
||||||
#define MIN(x,y) ((x) < (y) ? (x) : (y))
|
#define MIN(x,y) ((x) < (y) ? (x) : (y))
|
||||||
|
#undef MAX
|
||||||
#define MAX(x,y) ((x) > (y) ? (x) : (y))
|
#define MAX(x,y) ((x) > (y) ? (x) : (y))
|
||||||
|
|
||||||
#define LEN(x) (sizeof (x) / sizeof *(x))
|
#define LEN(x) (sizeof (x) / sizeof *(x))
|
||||||
|
Loading…
Reference in New Issue
Block a user