Third time lucky with definition to remove warning about strdup()

This commit is contained in:
Dominic Spill
2018-03-26 21:31:56 -06:00
parent e0e02bcd7a
commit 936da52169
2 changed files with 1 additions and 5 deletions

View File

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

View File

@ -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 <pthread.h>