From 0e11a089c20564c5f3f708a93a3f807b05f956e7 Mon Sep 17 00:00:00 2001 From: markjfine Date: Mon, 21 Apr 2025 15:14:46 -0400 Subject: [PATCH 29/46] Update airspyhf_rx.c Adds check to see if stdc version is older than c23 prior to applying the definition of bool. bool is a keyword in c23 and later and causes an error during compilation. --- tools/src/airspyhf_rx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/src/airspyhf_rx.c b/tools/src/airspyhf_rx.c index e633804..6dbb23e 100644 --- a/tools/src/airspyhf_rx.c +++ b/tools/src/airspyhf_rx.c @@ -37,12 +37,14 @@ #include #if !defined __cplusplus +#if __STDC_VERSION__ < 202311L #ifndef bool typedef int bool; #define true 1 #define false 0 #endif #endif +#endif #ifdef _WIN32 #include -- 2.47.3