(abs): add

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5375 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-02-16 00:52:59 +00:00
parent 3d536e3a81
commit 1aaafb524f

View File

@@ -69,6 +69,10 @@
#define min(a,b) (((a)<(b))?(a):(b)) #define min(a,b) (((a)<(b))?(a):(b))
#endif #endif
#ifndef abs
#define abs(x) (((x) < 0) ? (-x) : (x))
#endif
#ifndef TRUE #ifndef TRUE
#define TRUE 1 #define TRUE 1
#endif #endif