1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 19:52:20 +00:00

Don't try to define abs() on linux, stdlib will handle it.

This commit is contained in:
Peter Howkins 2012-03-23 13:49:24 +00:00
parent cc949fccd2
commit d2f85af5e5

View file

@ -97,8 +97,10 @@ typedef struct {
#define min(a, b) ((a < b) ? a : b)
#define max(a, b) ((a > b) ? a : b)
#ifndef abs
#if !defined(linux)
#define abs(a) (((a) < 0) ? -(a) : (a))
#endif
#endif
#define mag(a,b) ((a-b) < 0 ? (b-a) : (a-b))
#define DARK 0