Windows: guid_to_string() is only discarded when macro-usbi_dbg used
authorMichael Plante <michael.plante@gmail.com>
Fri, 23 Dec 2011 22:50:21 +0000 (16:50 -0600)
committerPeter Stuge <peter@stuge.se>
Wed, 8 Feb 2012 13:46:17 +0000 (14:46 +0100)
commitca09754471acba9a22fe8fc09170e5660d1d5c5d
tree29ad95908726589fee7bf690d397f67f80955c17
parent8e15adcb0089882d10269ab77d35e193770ab90e
Windows: guid_to_string() is only discarded when macro-usbi_dbg used

* usbi_dbg encloses all references to guid_to_string
* MinGW/cygwin warn about an unused function, so the #if
  squelches this warning
* MSVC6 uses a variadic function form of usbi_dbg instead
  of a macro, so the compiler still "sees" guid_to_string
  and it therefore needs to always be defined for MSVC6,
  even if it's only a stub.
* So we define it if usbi_dbg is used OR if MSVC6 is used.

Signed-off-by: Michael Plante <michael.plante@gmail.com>
libusb/os/windows_usb.c