aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xorg-server/dix/getevents.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xorg-server/dix/getevents.c b/xorg-server/dix/getevents.c
index 8134c4d77..40fe4b7bb 100644
--- a/xorg-server/dix/getevents.c
+++ b/xorg-server/dix/getevents.c
@@ -63,6 +63,8 @@
#include "listdev.h" /* for sizing up DeviceClassesChangedEvent */
#ifdef _MSC_VER
+#include <math.h>
+
float roundf(float f)
{
return ((f<0.0f) ? ceil(f-.5) : floor (f+.5));