Y
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
ori_b
5233 days ago
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.
link
Keep the conditional compilation in the makefiles, not in the source.