I'm compiling a .mm file (Objective-C++) for an iPhone application, and the precompiled header fails to include the base classes.
I tracked it down to the following:
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#endif
Turns out, __OBJC__
is undefined for mm files, whereas it is defined for standard m files.
Is there any other flag I can use instead?