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:
parent
cc949fccd2
commit
d2f85af5e5
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue