On 20/12/2006, at 12:20 PM, Dr Gerard Hammond wrote:

I need to build a UB that has a constant set to true for "Mac Macho Carbon' but false for "Mac Macho- Intel'

This is because I have a plugin that only works under Macho PPC machines, but I want a Single UB app to have the Macho-intel version not include calls to the plugin as well as a PPC macho binary that does have the plugin.

it sounds like your "need" is to detect a condition, not to define a constant

the following seems to work (not tested on an actual Intel machine) and will be compile-time

  #if TargetMachO and TargetX86
    MsgBox "Must be a new Mac!"
  #else
    MsgBox "something older or non-Mac"
  #endif

hope that helps

Andy
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to