libusb.h: Simplify condition governing the inclusion of sys/time.h
authorChris Dickens <christopher.a.dickens@gmail.com>
Thu, 16 Apr 2020 21:31:18 +0000 (14:31 -0700)
committerChris Dickens <christopher.a.dickens@gmail.com>
Thu, 16 Apr 2020 21:31:18 +0000 (14:31 -0700)
commit61c457a699d211848efcbe538d949768e01b1d32
treedbf4c29fbd6c371298e5829b535804bc1d3216ed
parente990e48fa85e73cd16f2f0b4b02037d8c287d22f
libusb.h: Simplify condition governing the inclusion of sys/time.h

The expression for the condition grows each time a new backend is added,
but it can be simplified if changed to key off of the _MSC_VER macro.
The sys/time.h header is ubiquitous across all platforms and build
environments except Visual Studio, so change the condition to be based
on this. This fixes builds on BSD where the condition was not evaluating
to true.

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/libusb.h
libusb/version_nano.h