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.
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.