If, say, I'm compiling with gcc under Linux, a section of code will compile if it looks like this:
#if __linux__
/* your ad here */
#endif
How do I do such conditional compilation for FreeBSD (other than inverting the __linux__ test)? I'm hoping the answer would apply equally to clang and gcc...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.