From: Pete B. <pb...@gm...> - 2010-08-17 10:47:26
|
On 2010.08.17 05:07, Michael Plante wrote: > Any chance this is related to a problem with ssize_t instead? I.e., missing > libusb-pbatard\msvc\stdint.h ? Nope (but having to manually reapply all the non-intergrated MS stuff on top of current official to be able to test MS is of course prone to errors, so worth double checking) The problem was that DEFAULT_VISIBILITY needed to be defined in MSVC/config.h Once you do that, then you end up with: Compiling - core.c 1>errors in directory d:\libusb-pbatard\libusb\os 1>d:\libusb-pbatard\libusb\core.c(809) : error C2059: syntax error : 'type' 1>d:\libusb-pbatard\libusb\core.c(974) : error C2059: syntax error : 'type' 1>d:\libusb-pbatard\libusb\core.c(1094) : error C2059: syntax error : 'type' 1>d:\libusb-pbatard\libusb\core.c(1665) : error C2059: syntax error : 'type' Compiling - descriptor.c Compiling - io.c 1>d:\libusb-pbatard\libusb\io.c(1180) : error C2059: syntax error : 'type' 1>d:\libusb-pbatard\libusb\io.c(2264) : error C2059: syntax error : 'type' This of course, occurs on all the lines where we now have something like: API_EXPORTED libusb_device * LIBUSB_CC libusb_ref_device(libusb_device *dev) Because both API_EXPORTED and LIBUSB_CC are defined to WINAPI/__stdcall Once more, I'd voice my preference for not trying to group API_EXPORTED and LIBUSB_CC as I don't think it'll lead to the code simplicity we were hoping for. Regards, /Pete |