[BUG REPORT]libusb's function libusb_get_version() Doesn't work

Summary

<library libusb's function libusb_get_version() Doesn't work>

System Information

  • Operating system: < LinuxMX 23.3 x86 >
  • Processor architecture: < x86-64 >
  • Compiler version: < 3.2.2,trunk >
  • Device: < PC >

Steps to reproduce

< Call a function to read the version information >

Example Project

What is the current bug behavior?

< The return value is out of order: Version: 57882.63368.32767.0. .). >

What is the expected (correct) behavior?

< Similar information should be obtained: Version: 1.0.26.11724..http://libusb.info. >

Relevant logs and/or screenshots

Possible fixes

< in /fpcsrc/packages/libusb/src/libusb.pp line1138:

function libusb_get_version():libusb_version;LIBUSB_CALL;external libusb1;

"libusb_version" should be "plibusb_version"

The return value should be a pointer rather than a structure value.