I also want to know how to do this detection. Could you give more detail about this ?
I have a DeviceSettings.h used in my original cocos2d project, and it works fine.
But when I include this DeviceSettings.h into current cocos2d-x ccp file, I got 999+ compile error.
Could you give me some light about this, thank you.