Commit 754f4fd3 authored by Adam Wujek's avatar Adam Wujek

include/wrc.h: don't use abs from the library

Saves 36B
Signed-off-by: 's avatarAdam Wujek <adam.wujek@creotech.pl>
parent d1c3c002
......@@ -30,6 +30,9 @@
_a < _b ? _a : _b; })
#endif
/* Don't use abs from the library */
#define abs(x) ((x >= 0) ? x : -x)
#ifndef htons
# define htons(x) (x)
#endif
......@@ -92,9 +95,6 @@ void shell_init(void);
/* Default width (in 8ns/16ns units) of the pulses on the PPS output */
#define PPS_WIDTH (10 * 1000 * 1000 / NS_PER_CLOCK) /* 10ms */
/* This is in the library, somewhere */
extern int abs(int val);
/* refresh period for _gui_ and _stat_ commands */
extern int wrc_ui_refperiod;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment