title: Is there an iPhone equivalent of MAC_OS_X_VERSION_MIN_REQUIRED?
body: <p>I would like to conditionally include code for an iPhone app depending on which version of the SDK I'm compiling against.  On Mac OS X, there is the <code>MAC_OS_X_VERSION_MIN_REQUIRED</code> preprocessor macro which gets set to the value of the <code>MACOSX_DEPLOYMENT_TARGET</code> build setting by the compiler.  Is there an equivalent on the iPhone?</p>
  
  <h3>Update:</h3>
  
  <p>I've set <code>IPHONE_DEPLOYMENT_TARGET</code> to 3.0 in the build settings, but Xcode is passing <code>-D__IPHONE_OS_VERSION_MIN_REQUIRED=20000</code> and <code>-mmacosx-version-min=10.5</code> to GCC.  Shouldn't the first one be <code>30000</code> and the second one be <code>-miphoneos-version-min=3.0</code>?  What am I doing wrong?</p>
  
  <h3>Update 2:</h3>
  
  <p>Looks like I wasn't doing anything wrong.  <code>__IPHONE_OS_VERSION_MIN_REQUIRED</code> and <code>-miphoneos-version-min</code> are both set correctly when building for a device -- it's only wrong when using the iPhone Simulator SDK.  I think it's a bug in the simulator SDK.</p>