diff options
author | Harald Welte <laforge@osmocom.org> | 2020-09-27 13:23:08 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2020-09-27 13:23:57 +0200 |
commit | 2ae97e38390fe973fca17e8fb22f9b083e0aeebf (patch) | |
tree | 6022b025012acace24ee4d8315dde7ebd69a6459 | |
parent | 1687d3dea30ac118724f5c5a0572d0a2a8954965 (diff) |
fix compilation with arm-none-eabi 8.3.1 20190703 on Debian unstable
To make the situation about stdint.h even more complicated, this
toolchain doesn't anymore #define __int8_t_defined, which means
we again run into conflicting definitions :/
Let's try to use INT8_MAX as a key.
Change-Id: I1a74cdcd03366390e88b2d5bddf01329410b9f1c
-rw-r--r-- | src/target/firmware/include/stdint.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/firmware/include/stdint.h b/src/target/firmware/include/stdint.h index 627403f9..5997f43b 100644 --- a/src/target/firmware/include/stdint.h +++ b/src/target/firmware/include/stdint.h @@ -19,7 +19,7 @@ #include_next <stdint.h> #endif -#ifndef __int8_t_defined +#if (!defined(__int8_t_defined) && !defined(INT8_MAX)) typedef signed char int8_t; typedef unsigned char uint8_t; |