From de42a51046f4156474e52fa1c75a08cb0730da25 Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Thu, 1 Oct 2020 16:59:14 -0500 Subject: [PATCH] Add function prototypes to interface At the point where distanceBetweenPoint or cubicEaseInOut are invoked, old compilers complain: error: incompatible types in initialization This is solved by declaring the function prototypes in the interface. --- Actions/MouseBaseAction.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Actions/MouseBaseAction.h b/Actions/MouseBaseAction.h index f32df47..2d24311 100644 --- a/Actions/MouseBaseAction.h +++ b/Actions/MouseBaseAction.h @@ -91,4 +91,8 @@ typedef enum { - (uint32_t)getMoveEventConstant; +- (float)distanceBetweenPoint:(NSPoint)a andPoint:(NSPoint)b; + +- (float)cubicEaseInOut:(float)p; + @end