Silence warning about strdup() being deprecated

This commit is contained in:
Dominic Spill
2018-03-26 20:59:55 -06:00
parent bb585e40a4
commit c8e8d33a59

View File

@ -30,6 +30,11 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSI
#ifdef _WIN32 #ifdef _WIN32
/* Avoid redefinition of timespec from time.h (included by libusb.h) */ /* Avoid redefinition of timespec from time.h (included by libusb.h) */
#define HAVE_STRUCT_TIMESPEC 1 #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 1
#endif #endif
#include <pthread.h> #include <pthread.h>