Win32: change serdev.c enough to compile on Windows. Fix warnings and errors#2
Win32: change serdev.c enough to compile on Windows. Fix warnings and errors#2ruevs wants to merge 1 commit intoFreeSpacenav:masterfrom
Conversation
by using ANSI C functions instead of obsolete POSIX ones.
|
At the very least these changes need to be conditional for windows only. The leading-underscore variants of the POSIX calls are certainly not ANSI C, they are a microsoft thing. But also, I'm not convinced that by just changing write to _write will make this work on windows. I would imagine we'd need to go for a |
|
The only device I have is a SpaceExplorer (USB) so I can not test this. That is why I left it as a separate pull request. The only goal here was to make it compile and remove the errors, reduce the warnings (when compiling with Microsoft Visual Studio Community 2019 Version 16.8.5). As for |
|
Don't worry about it, for now just rename |
|
Closing since #4 includes this. |
by using ANSI C functions instead of obsolete POSIX ones.