dix: fix duplicate typedef of MotionTracker and *MotionTrackerPtr
fix warning on duplicate typedef: > In file included from ../hw/xfree86/common/xf86Xinput.c:59: > ../dix/ptrveloc_priv.h:33:3: warning: redefinition of typedef 'MotionTracker' is a C11 feature [-Wtypedef-redefinition] > } MotionTracker, *MotionTrackerPtr; > ^ > ../include/ptrveloc.h:54:31: note: previous definition is here > typedef struct _MotionTracker MotionTracker, *MotionTrackerPtr; > ^ Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1427>
This commit is contained in:
parent
df5047fa46
commit
415df761d5
|
@ -18,11 +18,11 @@ struct _DeviceVelocityRec;
|
|||
* calc mean velocity and decide which motion was along
|
||||
* a more or less straight line
|
||||
*/
|
||||
typedef struct _MotionTracker {
|
||||
struct _MotionTracker {
|
||||
double dx, dy; /* accumulated delta for each axis */
|
||||
int time; /* time of creation */
|
||||
int dir; /* initial direction bitfield */
|
||||
} MotionTracker, *MotionTrackerPtr;
|
||||
};
|
||||
|
||||
/**
|
||||
* contains the run-time data for the predictable scheme, that is, a
|
||||
|
|
Loading…
Reference in New Issue