Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jul 2003 17:40:31 +0000
From:      Bosko Milekic <bmilekic@technokratis.com>
To:        Ben Goodwin <ben@atomicmatrix.net>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: NSS Modules
Message-ID:  <20030710174031.GA2521@technokratis.com>
In-Reply-To: <000501c34727$e9575fe0$6801a8c0@dsg.atomicmatrix.net>
References:  <001301c34669$438e1040$6801a8c0@dsg.atomicmatrix.net> <20030710164322.GA1812@technokratis.com> <000501c34727$e9575fe0$6801a8c0@dsg.atomicmatrix.net>

next in thread | previous in thread | raw e-mail | index | archive | help

On Thu, Jul 10, 2003 at 05:12:03PM -0400, Ben Goodwin wrote:
> I'd like to support Sun's cc, however .. so I'm betting that isn't defined
> (I will check) ...  I figured that would be available under gcc but assumed
> it wasn't "portable enough" ...

  You can still test for whether or not it is defined.

#if defined(__FreeBSD__)
  /* Do freebsd-specific stuff */
#else
  /* Other systems? */
#endif

-- 
Bosko Milekic  *  bmilekic@technokratis.com  *  bmilekic@FreeBSD.org
TECHNOkRATIS Consulting Services  *  http://www.technokratis.com/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030710174031.GA2521>