On Aug 24, 2004, at 2:45 PM, Seth Willits wrote:
On Aug 24, 2004, at 9:21 AM, Alexander Cohen wrote:
Is there anyway to know from within a plugin if the app that is using
this plugin is compiled as CFM or MachO?
Well since you have to build two different plugins, you should know
from the plugin you've built. The way I make my dummy plugins is by
using
#if __GCC__ // (I think that's what it is)
It's actually __GNUC__, but I would not recommend doing this. GCC is
used on other platforms as well.
There is a constant "TARGET_RT_MAC_MACHO" that is defined by Apple. If
that constant name isn't memorable enough, I would suggest doing a
define like this:
#define MACH_PLUGIN TARGET_RT_MAC_MACHO
HTH,
Jon
--
Jonathan Johnson
Testing Department
REAL Software, Inc.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>
|