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>
#include <limits.h>
#include <stdint.h>
#include <sys/types.h>
-#if defined(__linux__) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__HAIKU__) || defined(__GLIBC__)
+#if !defined(_MSC_VER)
#include <sys/time.h>
#endif
#include <time.h>
-#define LIBUSB_NANO 11495
+#define LIBUSB_NANO 11496