diff options
Diffstat (limited to 'xorg-server/dix/ptrveloc.c')
-rw-r--r-- | xorg-server/dix/ptrveloc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/xorg-server/dix/ptrveloc.c b/xorg-server/dix/ptrveloc.c index e9d4e882f..58b6a81da 100644 --- a/xorg-server/dix/ptrveloc.c +++ b/xorg-server/dix/ptrveloc.c @@ -26,12 +26,17 @@ #include <dix-config.h> #endif +#ifdef _MSC_VER +#define _USE_MATH_DEFINES +#endif + #include <math.h> #include <ptrveloc.h> #include <inputstr.h> #include <assert.h> #include <os.h> + /***************************************************************************** * Predictable pointer acceleration * @@ -58,6 +63,10 @@ * ****************************************************************************/ +#ifdef _MSC_VER +#define inline __inline +#endif + /* fwds */ static inline void FeedFilterStage(FilterStagePtr s, float value, int tdiff); |