From e1f0a2cea1eb42027d1be49455cf28da4b76fad4 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Fri, 1 Dec 2023 11:34:55 +0100 Subject: [PATCH] Add '#include ' Compiling with clang-cl, gives this error: ```c hackrf-tools/src/hackrf_sweep.c(685,3): error: call to undeclared function '_setmode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 685 | _setmode(_fileno(stdout), _O_BINARY); | ^ ``` fixed by simply adding `#include `. --- host/hackrf-tools/src/hackrf_sweep.c | 1 + 1 file changed, 1 insertion(+) diff --git a/host/hackrf-tools/src/hackrf_sweep.c b/host/hackrf-tools/src/hackrf_sweep.c index 826589f95..9acb5f5e0 100644 --- a/host/hackrf-tools/src/hackrf_sweep.c +++ b/host/hackrf-tools/src/hackrf_sweep.c @@ -47,6 +47,7 @@ typedef int bool; #ifdef _WIN32 #define _USE_MATH_DEFINES #include + #include #ifdef _MSC_VER #ifdef _WIN64