nyholku / purejavacomm

Pure Java implementation of JavaComm SerialPort
http://www.sparetimelabs.com/purejavacomm/index.html
BSD 3-Clause "New" or "Revised" License
367 stars 146 forks source link

JNA 5.0 Support #111

Closed PeteSL closed 6 years ago

PeteSL commented 6 years ago

These minor changes have been tested with JNA 4.5.2 and 5.0 without error (sorry for Merge pull request; didn't do a rebase function when I brought my fork up to date). Native.setPreserveLastError has been a NOOP in JNA 4.x and was removed in 5.0. Pointer.SIZE was removed in lieu of Native.POINTER_SIZE in 5.0.

PeteSL commented 6 years ago

I have rebased my fork and will resubmit without the Merge commit.