Remove winpthreads.h

MSVC build now needs NuGet pthreads package to compile
https://github.com/Hamlib/Hamlib/issues/1107
pull/1119/head
Mike Black W9MDB 2022-09-03 11:19:56 -05:00
rodzic 571f59e696
commit 1d0d733405
3 zmienionych plików z 12 dodań i 4 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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

Wyświetl plik

@ -37,11 +37,12 @@
#include <string.h>
#include <inttypes.h>
#include <time.h>
// For MSVC install the NUGet pthread package
#if defined(_MSC_VER)
#include <winpthreads.h>
#else
#include <pthread.h>
#define HAVE_STRUCT_TIMESPEC
#endif
#include <pthread.h>
/* Rig list is in a separate file so as not to mess up w/ this one */
#include <hamlib/riglist.h>