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
1 changed files with 2 additions and 0 deletions

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