Hacker News new | ask | show | jobs
by LefterisJP 5233 days ago
Yes having platform specific code in its own header source and just #ifdef the includes provides much cleaner and nicer code
1 comments

Don't even do that -- have one header that all the platform interfaces implement without ifdefs.

Keep the conditional compilation in the makefiles, not in the source.