diff options
| author | David Lechner <david@pybricks.com> | 2019-12-12 17:02:53 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-12 17:02:53 -0600 |
| commit | d09f7a4396f7379f995ab646329ca54e44a6d705 (patch) | |
| tree | 17c89b4372ad2834c859252e6868068d9f6b1816 | |
| parent | c3017d7d74867398dcdcaa21d93c6a0b039b9bca (diff) | |
add #include <stdint.h> to int64.h
When using the `gcc -M` option to determine header file dependencies, int64.h causes an error because the types from stdint.h are not defined.
| -rw-r--r-- | libfixmath/int64.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libfixmath/int64.h b/libfixmath/int64.h index d303259..0479336 100644 --- a/libfixmath/int64.h +++ b/libfixmath/int64.h @@ -6,6 +6,8 @@ extern "C" {
#endif
+#include <stdint.h>
+
#ifndef FIXMATH_NO_64BIT
static inline int64_t int64_const(int32_t hi, uint32_t lo) { return (((int64_t)hi << 32) | lo); }
static inline int64_t int64_from_int32(int32_t x) { return (int64_t)x; }
|
