On Sun, 2012-09-23 at 23:26 +0200, Johann Glaser wrote: > Hi! > > Some time ago somebody asked about USB support. I've now finished the > libusb 1.0 header translation and object-oriented wrapper.
Hi Hansi, I see that the imported functions in libusb.pas are declared with the cdecl calling convention. According to the libusb header this is so for all operating systems except windows which is apparently compiled using the stdcall calling convention. Any ideas on how to define the calling convention in the import unit so that it is either stdcall or cdecl depending on the target OS? Regards, Christo _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal