Hello,
If you're going to do this for every module for every OS you're planning on supporting, this is a bad start imho.
Well, i will only support Linux and OpenBSD - and almost half of the modules is POSIX-compliant anyway.
What would you think about rather separating objects to their OS directory and chose which to build/link at make time?
Will adding an additional separation layer or even directory structure with duplicate code actually improve the readbility of the program? Performance-wise it is the same.
Regards, Aaron -- Web: https://drkhsh.at/ or http://drkhsh5rv6pnahas.onion/ Gopher: gopher://drkhsh.at or gopher://drkhsh5rv6pnahas.onion GPG: 0x7A65E38D55BE96FE Fingerprint: 4688 907C 8720 3318 0D9F AFDE 7A65 E38D 55BE 96FE
