diff --git a/dix/ptrveloc.c b/dix/ptrveloc.c index a79a83eee..82a55d410 100644 --- a/dix/ptrveloc.c +++ b/dix/ptrveloc.c @@ -749,10 +749,11 @@ ApplyConstantDeceleration(DeviceVelocityPtr vel, double *fdx, double *fdy) /* * compute the acceleration for given velocity and enforce min_acceleration */ -double -BasicComputeAcceleration(DeviceIntPtr dev, - DeviceVelocityPtr vel, - double velocity, double threshold, double acc) +static double BasicComputeAcceleration(DeviceIntPtr dev, + DeviceVelocityPtr vel, + double velocity, + double threshold, + double acc) { double result; diff --git a/include/ptrveloc.h b/include/ptrveloc.h index 024123ba5..cd3a3293c 100644 --- a/include/ptrveloc.h +++ b/include/ptrveloc.h @@ -81,10 +81,6 @@ typedef struct _DeviceVelocityRec { } statistics; } DeviceVelocityRec, *DeviceVelocityPtr; -extern _X_EXPORT double -BasicComputeAcceleration(DeviceIntPtr dev, DeviceVelocityPtr vel, - double velocity, double threshold, double acc); - extern _X_EXPORT void FreeVelocityData(DeviceVelocityPtr vel);