From 5fde17f879239515f1359f8b6285168d3355c3ce Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Fri, 21 Jun 2024 23:07:50 -0400 Subject: [PATCH] fix stupid GCC 4.9.3 for ARMHF non-sense; --- src/common/dmr/DMRDefines.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/common/dmr/DMRDefines.h b/src/common/dmr/DMRDefines.h index 681ba0fc..d2a4585a 100644 --- a/src/common/dmr/DMRDefines.h +++ b/src/common/dmr/DMRDefines.h @@ -282,6 +282,13 @@ namespace dmr #define DMR_DT_VOICE_SYNC "DMR, VOICE_SYNC (Voice Data with Sync)" #define DMR_DT_VOICE "DMR, VOICE (Voice Data)" + // HACK: make GCC 4.9.3 happy... + #if (__GNUC__ == 4 && (__GNUC_MINOR__ == 9 && __GNUC_PATCHLEVEL__ >= 3)) && __arm__ + // because the idiot GCC 4.9.3 compiler on ARMHF has a define for "HUGE" and because we utilize this + // as a enumeration below, lets just ... undefine it because thats smart + #undef HUGE + #endif + /// /// Site Models ///