diff --git a/include/chibi/config.h b/include/chibi/config.h index bd4007cb..b070397b 100644 --- a/include/chibi/config.h +++ b/include/chibi/config.h @@ -110,9 +110,8 @@ #define exit_normally() exits(NULL) #define strcasecmp cistrcmp #define strncasecmp cistrncmp -/* XXXX these are wrong */ -#define trunc floor -#define round(x) floor(x+0.5) +#define round(x) floor((x)+0.5) +#define trunc(x) ((x)-((x)-round(x))) #else