realbasic-plugins
[Top] [All Lists]

Re: Is app MachO or CFM

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: Is app MachO or CFM
From: Jonathan Johnson <jonj at realsoftware dot com>
Date: Tue, 24 Aug 2004 14:54:56 -0500
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <A1317A16-F5E9-11D8-A03A-000A95B947DC at toomuchspace dot com> <25DCA034-F606-11D8-A0F2-000A95A5E76E at freaksw dot com>

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>

<Prev in Thread] Current Thread [Next in Thread>