Silence warning about strdup() being deprecated
This commit is contained in:
@ -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>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user