Avoid timespec structure redeclaration on VS2015.

Still seems to be a bit messy, because in newer pthread header (gcc 5.1) I see _TIMESPEC_DEFINED instead of HAVE_STRUCT_TIMESPEC. But it should work with our dependencies files.

And still wiiuse library needs to be recompiled to make it working with VS2015.
This commit is contained in:
deve 2015-08-06 10:00:08 +02:00
parent 95b86ea914
commit a0e54bb0b8

View File

@ -211,6 +211,11 @@ if(WIN32)
# And shut up about unsafe stuff
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
# Avoid timespec structure redeclaration on Visual Studio 2015
if (MSVC_VERSION EQUAL 1900)
add_definitions(-DHAVE_STRUCT_TIMESPEC)
endif()
endif()
if(MSVC)