Add '#include <io.h>'

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 <io.h>`.
This commit is contained in:
Gisle Vanem
2023-12-01 11:34:55 +01:00
committed by GitHub
parent f5dd48a5bc
commit e1f0a2cea1

View File

@ -47,6 +47,7 @@ typedef int bool;
#ifdef _WIN32
#define _USE_MATH_DEFINES
#include <windows.h>
#include <io.h>
#ifdef _MSC_VER
#ifdef _WIN64