mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 07:21:25 +12:00
Fix timespec for MSVC
This commit is contained in:
parent
52a12185a0
commit
af86d1d77a
1 changed files with 4 additions and 0 deletions
4
3rdparty/CMakeLists.txt
vendored
4
3rdparty/CMakeLists.txt
vendored
|
@ -91,6 +91,10 @@ if(CMAKE_SYSTEM MATCHES "DragonFly|FreeBSD")
|
||||||
# Always use system libusb as reference implementation isn't supported
|
# Always use system libusb as reference implementation isn't supported
|
||||||
add_library(usb-1.0-static INTERFACE)
|
add_library(usb-1.0-static INTERFACE)
|
||||||
target_link_libraries(usb-1.0-static INTERFACE usb)
|
target_link_libraries(usb-1.0-static INTERFACE usb)
|
||||||
|
elseif(MSVC)
|
||||||
|
# Windows time.h defines timespec but doesn't add any flag for it, which makes libusb attempt to define it again
|
||||||
|
add_definitions(-DHAVE_STRUCT_TIMESPEC=1)
|
||||||
|
add_subdirectory(libusb EXCLUDE_FROM_ALL)
|
||||||
else()
|
else()
|
||||||
add_subdirectory(libusb EXCLUDE_FROM_ALL)
|
add_subdirectory(libusb EXCLUDE_FROM_ALL)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue