Fix mingw build issue caused by "interface" preprocessor definition
authorPaul Fertser <fercerpav@gmail.com>
Wed, 7 Aug 2013 10:35:46 +0000 (14:35 +0400)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 9 Aug 2013 15:08:54 +0000 (17:08 +0200)
commitca7d32448041e33bdb206241f210ad8961f8d10c
tree060cb6b9c26fafbc11b40636c643822366757569
parent1cbfde9493c86c91f213746137307131180760db
Fix mingw build issue caused by "interface" preprocessor definition

Due to a weird odditie of windows, mingw has to redefine "interface" to
"struct" in its headers as described e.g. at
https://bugzilla.redhat.com/show_bug.cgi?id=980270

So if some software includes windows.h before ftdi.h, it'll lead to a
build failure. This snippet, borrowed from libusb, fixes it.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
src/ftdi.h