fixing definition of trunc for plan9

This commit is contained in:
Alex Shinn 2009-07-14 01:36:37 +09:00
parent fba75390b7
commit e780c122c0

View file

@ -110,9 +110,8 @@
#define exit_normally() exits(NULL) #define exit_normally() exits(NULL)
#define strcasecmp cistrcmp #define strcasecmp cistrcmp
#define strncasecmp cistrncmp #define strncasecmp cistrncmp
/* XXXX these are wrong */ #define round(x) floor((x)+0.5)
#define trunc floor #define trunc(x) ((x)-((x)-round(x)))
#define round(x) floor(x+0.5)
#else #else