diff --git a/README.win32 b/README.win32 index f32724b1e..2c7930f08 100644 --- a/README.win32 +++ b/README.win32 @@ -85,3 +85,10 @@ same directory or in PATH as the resulting .exe otherwise it won't find it. Mark J. Fine Remington, Virginia, USA + + +MSVC 2022 +========= +MSVC C/C++ projects must use the NuGet pthread package in order to compile as of Sep 2022 +An example C++ project is in bindings/MSVC + diff --git a/include/Makefile.am b/include/Makefile.am index d54684b92..273d0ce2e 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -3,4 +3,4 @@ noinst_HEADERS = bandplan.h num_stdio.h nobase_include_HEADERS = hamlib/rig.h hamlib/riglist.h hamlib/rig_dll.h \ hamlib/rotator.h hamlib/rotlist.h hamlib/rigclass.h \ hamlib/rotclass.h hamlib/amplifier.h hamlib/amplist.h \ - hamlib/ampclass.h hamlib/config.h hamlib/winpthreads.h + hamlib/ampclass.h hamlib/config.h diff --git a/include/hamlib/rig.h b/include/hamlib/rig.h index 72fe87595..8b7f72b4b 100644 --- a/include/hamlib/rig.h +++ b/include/hamlib/rig.h @@ -37,11 +37,12 @@ #include #include #include + +// For MSVC install the NUGet pthread package #if defined(_MSC_VER) -#include -#else -#include +#define HAVE_STRUCT_TIMESPEC #endif +#include /* Rig list is in a separate file so as not to mess up w/ this one */ #include