From 936da52169485211c6eaff2ecdec23876600fbe8 Mon Sep 17 00:00:00 2001 From: Dominic Spill Date: Mon, 26 Mar 2018 21:31:56 -0600 Subject: [PATCH] Third time lucky with definition to remove warning about strdup() --- appveyor.yml | 1 + host/libhackrf/src/hackrf.c | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 93bb2a46..179d517d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -29,5 +29,6 @@ build_script: -DPKG_CONFIG_EXECUTABLE="C:\pkg-config\bin\pkg-config.exe" \ -DFFTW_INCLUDES=C:\fftw \ -DFFTW_LIBRARIES=C:\fftw\libfftw3f-3.lib \ + -D_CRT_NONSTDC_NO_DEPRECATE \ .. - msbuild HackRF.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" diff --git a/host/libhackrf/src/hackrf.c b/host/libhackrf/src/hackrf.c index 2e30413a..31be1750 100644 --- a/host/libhackrf/src/hackrf.c +++ b/host/libhackrf/src/hackrf.c @@ -30,11 +30,6 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSI #ifdef _WIN32 /* Avoid redefinition of timespec from time.h (included by libusb.h) */ #define HAVE_STRUCT_TIMESPEC 1 - -/* Stop MSVC complaining about strdup() - * Sure, we could fix this another way if strdup() is ever deprecated - */ -#define _CRT_NONSTDC_NO_DEPRECATE #endif #include