aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/include
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-10-06 09:57:55 +0200
committermarha <marha@users.sourceforge.net>2011-10-06 09:57:55 +0200
commitd3c46bb9ad171c41470eed8c7e8ba5498b95430f (patch)
tree13a2cb52c0835a0c29a7f154f420fc51b01e48dd /xorg-server/include
parentfa9e5aaaad0202347791636c9a1af2a904bc1c5e (diff)
downloadvcxsrv-d3c46bb9ad171c41470eed8c7e8ba5498b95430f.tar.gz
vcxsrv-d3c46bb9ad171c41470eed8c7e8ba5498b95430f.tar.bz2
vcxsrv-d3c46bb9ad171c41470eed8c7e8ba5498b95430f.zip
Solved link error due to trunc not defined in VC++
Diffstat (limited to 'xorg-server/include')
-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