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.
This commit is contained in:
David Lechner 2019-12-12 17:02:53 -06:00 committed by GitHub
parent c3017d7d74
commit d09f7a4396
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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; }