mirror of
https://github.com/greatscottgadgets/hackrf.git
synced 2026-03-02 21:45:37 +01:00
Using _MSC_VER here means that the choice of signal() versus SetConsoleCtrlHandler depends on the compiler being used, rather than the OS being targeted. When built with MinGW rather than MSVC, this happens to work because MinGW's signal emulation is used, but that emulation is quite limited. Instead, be consistent and use the Win32 API when building for that platform, regardless of compiler. Note that if building for Cygwin, _WIN32 is not defined and POSIX APIs are used.