Commit a458bc8
Add <cstdint> header to avoid compilation errors on GCC 13
Currently, when compiling with GCC 13, the following error is displayed:
In file included from /builddir/build/BUILD/touchegg-2.0.15/src/actions/action.h:26,
from /builddir/build/BUILD/touchegg-2.0.15/src/actions/action.cpp:18:
/builddir/build/BUILD/touchegg-2.0.15/src/gesture/gesture.h:32:58:
error: 'uint64_t' has not been declared
32 | int fingers, DeviceType performedOnDeviceType, uint64_t elapsedTime)
| ^~~~~~~~
/builddir/build/BUILD/touchegg-2.0.15/src/gesture/gesture.h:72:3:
error: 'uint64_t' does not name a type
72 | uint64_t elapsedTime() const { return this->gestureElapsedTime; }
| ^~~~~~~~
/builddir/build/BUILD/touchegg-2.0.15/src/gesture/gesture.h:22:1:
note: 'uint64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
21 | #include "gesture/device-type.h"
+++ |+#include <cstdint>
22 | #include "gesture/gesture-direction.h"
/builddir/build/BUILD/touchegg-2.0.15/src/gesture/gesture.h:88:3: error: 'uint64_t'
does not name a type
88 | uint64_t gestureElapsedTime = -1;
| ^~~~~~~~
/builddir/build/BUILD/touchegg-2.0.15/src/gesture/gesture.h:88:3: note: 'uint64_t'
is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
/builddir/build/BUILD/touchegg-2.0.15/src/gesture/gesture.h: In constructor
'Gesture::Gesture(GestureType, GestureDirection, double, int, DeviceType, int)':
/builddir/build/BUILD/touchegg-2.0.15/src/gesture/gesture.h:38:9: error: class
'Gesture' does not have any field named 'gestureElapsedTime'
38 | gestureElapsedTime(elapsedTime) {}
| ^~~~~~~~~~~~~~~~~~1 parent cc74aa8 commit a458bc8
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
0 commit comments