Skip to content

Commit a458bc8

Browse files
mairacanalJoseExposito
authored andcommitted
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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/gesture/gesture.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
#ifndef GESTURE_GESTURE_H_
1919
#define GESTURE_GESTURE_H_
2020

21+
#include <cstdint>
22+
2123
#include "gesture/device-type.h"
2224
#include "gesture/gesture-direction.h"
2325
#include "gesture/gesture-type.h"

0 commit comments

Comments
 (0)