How to detect reliably Mac OS X, iOS, Linux, Windows in C preprocessor? [duplicate]

If there’s some cross-platform C/C++ code that should be compiled on Mac OS X, iOS, Linux, Windows, how can I detect them reliably during preprocessor process?

3 Answers
3

Leave a Comment