Usually to differentiate with windows and unix in C++ code, we use macro as below
#ifdef WIN32 #ifdef POSIX
Is there any way to differentiate that we are on APPLE platform (iOS or OSX)? This will help to differentiate between linux and Apple.