Windows: Fix ssize_t unconditionally defined
authorPaul Cercueil <paul@crapouillou.net>
Wed, 6 Oct 2021 13:31:24 +0000 (14:31 +0100)
committerTormod Volden <debian.tormod@gmail.com>
Sat, 30 Oct 2021 13:21:56 +0000 (15:21 +0200)
commit619c28f37efec41e12d7de67f869fa24c82bc21f
treee1468e5585e6d9c166a123dd36fc581fc4efc933
parenta584d060c853c9867dabc915fbafcbeccba1bc12
Windows: Fix ssize_t unconditionally defined

The standard procedure to define ssize_t on Windows is to wrap it around
a check for the _SSIZE_T_DEFINED macro.

If not done, it makes it impossible to use the libusb.h header along
with other headers (from other libraries) that also attempt to define
ssize_t.

Closes #1007

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
libusb/libusb.h
libusb/version_nano.h