Make compatible for fallthrough

On some lower version GCC compiler,fallthrough does not define and will
cause compile error:
error: use of undeclared identifier 'fallthrough'

Change-Id: Ie86ca8703d84a6d06faddc159380a7f4ed40a6a7
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2775802
Reviewed-by: Wei Deng <dengwei1@motorola.com>
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Wenge Zhu 2023-10-25 10:39:26 +08:00 • committed by zhuwg1
commit ab87620da1

View file

@ -73,6 +73,10 @@
#define GOODIX_GESTURE_UNDER_WATER 0x20
#define GOODIX_GESTURE_PALM_DETECTION 0x40
#ifndef fallthrough
#define fallthrough do {} while (0) /* fallthrough */
#endif
enum GOODIX_GESTURE_TYP {
GESTURE_SINGLE_TAP = (1 << 0),
GESTURE_DOUBLE_TAP = (1 << 1),