diff options
Diffstat (limited to 'apps/plugins/calculator.c')
-rw-r--r-- | apps/plugins/calculator.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/plugins/calculator.c b/apps/plugins/calculator.c index 942f031890..c19d6bbc5b 100644 --- a/apps/plugins/calculator.c +++ b/apps/plugins/calculator.c | |||
@@ -102,6 +102,9 @@ PLUGIN_HEADER | |||
102 | #define X_5_POS (X_4_POS + REC_WIDTH) /* x5 = 110, column 111 left blank */ | 102 | #define X_5_POS (X_4_POS + REC_WIDTH) /* x5 = 110, column 111 left blank */ |
103 | 103 | ||
104 | #define SIGN(x) ((x)<0?-1:1) | 104 | #define SIGN(x) ((x)<0?-1:1) |
105 | #ifndef ABS | ||
106 | #define ABS(a) (((a) < 0) ? -(a) : (a)) | ||
107 | #endif | ||
105 | 108 | ||
106 | /* variable button definitions */ | 109 | /* variable button definitions */ |
107 | #if CONFIG_KEYPAD == RECORDER_PAD | 110 | #if CONFIG_KEYPAD == RECORDER_PAD |