Hi Sean,

It would seem to me that

#if TARGET_OS_MAC

#endif

is not getting executed in my code.

I have:

#if TARGET_OS_MAC
        typedef unsigned char                                                   
UInt8;
        typedef signed char                                                     
SInt8;
        typedef unsigned short                                          UInt16;
        typedef signed short                                                    
SInt16;
        typedef unsigned long                                                   
UInt32;
        typedef signed long                                                     
SInt32;
#endif // TARGET_OS_MAC

and I get undefined errors, but when I comment out the #if and #end
if, the errors go away. My question is why?

is there a better #if to use for OS X than TARGET_OS_MAC?

So you already have a working Xcode project, yes?  If you cmd-double-
click the word TARGET_OS_MAC in your source, Xcode will show you where
it is defined: TargetConditionals.h.  Are you including that?

I am not. Neither in the XCode version or otherwise. I am just including Carbon/Carbon.h for both projects.

-Jason

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to