> 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.
Yes. Now, if you only have a couple of those, maybe it's not worthwhile indeed. Just keep this in mind if/when you reach a point where there are too much of those.
