In many cases you don't need preprocessor for this even in C++. For example you can detect the availability of system functions using function overloading as described in http://zverovich.net/2015/03/13/reliable-detection-of-strerr...
No comments yet.