discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ifdefs


From: Nicola Pero
Subject: Re: ifdefs
Date: Thu, 26 Jul 2001 11:00:45 +0100 (BST)

> What is the preferred way to ifdef code such that it only exists if we're
> not compiling under GNUstep?
> 
> is
> 
> #ifndef GNUSTEP_BASE_VERSION
> 
> /* some code here */
> 
> #endif
> 
> sufficient?

Yes - or the variant

#ifdef GNUSTEP_BASE_VERSION
 /* gnustep specific code here */
#endif





reply via email to

[Prev in Thread] Current Thread [Next in Thread]