configure.ac: Simplify detection of Windows compilation
authorChris Dickens <christopher.a.dickens@gmail.com>
Thu, 9 Apr 2020 18:46:03 +0000 (11:46 -0700)
committerChris Dickens <christopher.a.dickens@gmail.com>
Thu, 9 Apr 2020 18:46:03 +0000 (11:46 -0700)
commit6f0330c78467bb9b5154ffb1859f6b9850235b7a
treec72050ca60c5e75d8769abc7fbcd958b5f143a19
parent7c0cea7063413fad636d586dde74acde37f4c5b9
configure.ac: Simplify detection of Windows compilation

There are a few parts within the library where code is conditionally
compiled based on whether or not the target OS is Windows. Prior to
commit 8b09dd490d ("core: Kill the OS_* definitions and use in the
source code"), the OS_WINDOWS definition was used. With that definition
gone, the checks were replaced with _WIN32. Unfortunately the different
cross-platform toolchains do not universally define this, so add this to
AM_CPPFLAGS when building for Windows.

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