nfc-tools / libnfc

Platform independent Near Field Communication (NFC) library
http://nfc-tools.org
GNU Lesser General Public License v3.0
1.64k stars 436 forks source link

Cleanup unused code #724

Closed ikspress closed 1 month ago

ikspress commented 2 months ago

I have removed the #include <err.h> as it was only used in nfc-utils.h. Then, I have moved the definition of msleep() macro to nfc-internal.h for better organization. Furthermore, I tested on several compilers (include MSVC and MinGW), ensuring that signal(SIGINT, intr_hdlr) working correctly on Windows. Here are some of them.

ikspress commented 2 months ago

I removed the changes of windows.h due to it conflict with #718.