diff --git a/cores/arduino/wiring_constants.h b/cores/arduino/wiring_constants.h index aac3734dbef0dbe882ef3a48ecc43d7a1928e711..d4ae2156e76d2e0912f5c589317945bd474cc5fd 100644 --- a/cores/arduino/wiring_constants.h +++ b/cores/arduino/wiring_constants.h @@ -59,9 +59,11 @@ enum BitOrder { #define EXTERNAL 0 // undefine stdlib's abs if encountered -#ifdef abs -#undef abs -#endif // abs + +//#ifdef abs +//#undef abs +//#endif // abs + #ifndef min #define min(a,b) ((a)<(b)?(a):(b)) @@ -71,7 +73,7 @@ enum BitOrder { #define max(a,b) ((a)>(b)?(a):(b)) #endif // max -#define abs(x) ((x)>0?(x):-(x)) +//#define abs(x) ((x)>0?(x):-(x)) #define constrain(amt,low,high) ((amt)<(low)?(low):((amt)>(high)?(high):(amt))) #define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5)) #define radians(deg) ((deg)*DEG_TO_RAD)