Should use '#if TARGET_OS_IPHONE' not '#ifdef'

Monkey Forums/Monkey Bug Reports/Should use '#if TARGET_OS_IPHONE' not '#ifdef'

DGuy(Posted 2013) [#1]
In 'modules/monkey/native/lang.cpp' the following is used:
#ifdef TARGET_OS_IPHONE

It should be changed to:
#if TARGET_OS_IPHONE

It seems in more recent releases of the SDKs 'TARGET_OS_IPHONE' is always defined but set to 0 or 1 depending on the build target (ie. iOS or MACOS.)


marksibly(Posted 2013) [#2]
Thanks!