From: Pete B. <pb...@gm...> - 2010-01-21 17:35:49
|
> #define API_EXPORTED __stdcall _declspec(dllimport) OK, above will not work, because MSVC wants: return-type __stdcall function-name[(argument-list)] whereas libusb.h uses: API_EXPORTED return-type function-name[(argument-list)] So, because MSVC will not accept anything but the expected order, we would need to introduce a new macro (eg. #define WINAPI __stdcall) and redefine all the libusb.h function calls to: API_EXPORTED return-type WINAPI function-name[(argument-list)] For the time being, I think I'll hold off to this modification... Regards, /Pete |