[Scribus] MacOSX symbol

Benjamin Reed ranger
Mon Aug 25 13:27:13 CEST 2003


Paul wrote:
> Hi,
> 
> 
>>>Does anyone know what the g++ compiler symbol is for OSX? I need to add
>>>some code in which handles OSX routines.
>>
>>I assume you mean you want a unique define to recognize MacOSX?  If so, 
>>you want "__APPLE__".  (no quotes)
> 
> 
> I've seen __APPLE__ used for non-OSX applications as well (BladeEnc
> being one of them)

True, if you really want to be sure, you do:

#if defined(__APPLE__) && defined(__MACH__)

But I don't expect Qt for MacOS9 anytime soon... ;)




More information about the scribus mailing list