Is there some kind of #define that I can look at so that I know when to retract <OpenGLES/EAGL.h> , for example? Thanks!
#define
<OpenGLES/EAGL.h>
This should work:
#if defined(__OBJC__) && defined(__cplusplus)
For Objective-C, just leave the __cplusplus part
__cplusplus
You can determine this by running "gcc -v filename" and find the arguments to the command "cc1" (-DTHIS, -DTHAT, ...).