Mistake in RootViewController.mm?

Hi,

In RootViewController.mm, shoudn`t the #ifdef/#endif go outside the method?

// For ios6.0 and higher, use supportedInterfaceOrientations & shouldAutorotate instead

  • (NSUInteger) supportedInterfaceOrientations
    {
    #ifdef *IPHONE_6_0
    return UIInterfaceOrientationMaskAllButUpsideDown;
    #endif
    }
    This produces a compilation warning.

The correct is this?
#ifdef*IPHONE_6_0
// For ios6.0 and higher, use supportedInterfaceOrientations & shouldAutorotate instead

  • (NSUInteger) supportedInterfaceOrientations
    {
    return UIInterfaceOrientationMaskAllButUpsideDown;
    }
    #endif