Windows: Enable MinGW and MSVC DLL interchangeability
authorPete Batard <pete@akeo.ie>
Fri, 8 Jun 2012 22:31:56 +0000 (23:31 +0100)
committerPete Batard <pete@akeo.ie>
Fri, 8 Jun 2012 22:31:56 +0000 (23:31 +0100)
commit6b33cd458921a6023e6e54f3715ead7ed441c648
treee51e8cc74d5160241a36e182fd9c0cd62ea6d34d
parenta983fad006fe39a48517e061bf9f66501ff900be
Windows: Enable MinGW and MSVC DLL interchangeability

* Because we use the WINAPI calling convention, the def file MUST have the @n
  aliases. There is no way around this as MinGW's .o use decoration always
  for __stdcall, which can't be turned off.
* dlltool must therefore be invoked to create a proper import lib from the .def,
  using the --kill-at option.
* To do that, a CREATE_IMPORT_LIB autotools variable is introduced.
* Note: the .def file is currently maintained manually.
configure.ac
libusb/Makefile.am
libusb/version_nano.h