Closed rofl0r closed 3 years ago
The adlmidi2
is one of most messy parts which does replication of the original adlmidi tool by Joel Yliluoma. Yeah, in my mind here should be a typedef and the macro that defines what of them should been used. Thanks for the suggestion, I'll try to add the small configure test into the CMake side, that shouldn't be hard to make.
Just now I added the compile test into the CMake build that recognizes what termio
or termios
should be used during the build. I made the typedef for each of them. Please check :fox_face:
[100%] Linking CXX executable ../../adlmidi2 [100%] Built target adlmidi2
i don't recall the exact config i used, but adl2midi build succeeded, so i guess this works, thanks!
i don't recall the exact config i used, but adl2midi build succeeded, so i guess this works, thanks!
It should work with any config, and, since you have updated files, the CMake should automatically re-generate all makefiles to be sure all up to date :fox_face: Thanks for the confirmation, closing.
due to usage of the non-posix struct termio instead of struct termios
this patch fixes it, and i think you should get rid of all the ifdef junk and instead write a configure style check whether struct termios or termio is provided by termios.h, even though any platform claiming posix compatibility should expose the former.