aboutsummaryrefslogtreecommitdiff
path: root/xorg-server
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server')
-rw-r--r--xorg-server/include/misc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/xorg-server/include/misc.h b/xorg-server/include/misc.h
index 79549e714..04e084b65 100644
--- a/xorg-server/include/misc.h
+++ b/xorg-server/include/misc.h
@@ -84,6 +84,11 @@ OF THIS SOFTWARE.
#ifdef _MSC_VER
#define inline __inline
+#include <math.h>
+static double __inline trunc(double d)
+{
+ return (d>0) ? floor(d) : ceil(d) ;
+}
#endif
#ifndef MAXSCREENS