Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jun 1999 19:10:08 +0100
From:      Mark Ovens <markov@globalnet.co.uk>
To:        Pradesh_Chanderpaul@stratus.com
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Developing code for Non-Unix platform
Message-ID:  <19990608191007.C258@marder-1>
In-Reply-To: <1D1A4EF7AD4DD211A80D00A0C9D7DB667E670E@exna1.stratus.com>; from Pradesh_Chanderpaul@stratus.com on Tue, Jun 08, 1999 at 10:56:51AM -0400
References:  <1D1A4EF7AD4DD211A80D00A0C9D7DB667E670E@exna1.stratus.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jun 08, 1999 at 10:56:51AM -0400, Pradesh_Chanderpaul@stratus.com wrote:
> I am busy with a few development projects that are destined for
> non-Unix based platforms. Some of them are ports.
> 
> I am however not able to do my development on those platforms.
> 
> To get around this, I do my development in a fantastic Windows
> based free IDE called LCCWin32 (bugs and all).
> 
> However, I would prefer to do my development in FreeBSD. (This
> will provide one less reason to boot Win95. ) ;)
> 
> I find that using gcc on FreeBSD will compile the "Unix'sms"
> (ie. "system" calls like 'fstat(), signal(), ) without complaint
> However, this {"unixsms") are not available in my destined
> platform, so I need to code around them.
> 
> I found that coding in a DOS/Win32 environment will shut these
> out. Is there a way to do the same in FreeBSD using gcc.
> 

How about:

#ifdef __FreeBSD__

	/* Unix stuff here */

#else

	/* Non-Unix stuff here */

#endif

HTH

> Regards
> 
> ===============================================================
> Pradesh Chanderpaul                   Phone:  +27 12 663 3260/6
> 
> Stratus Computer Systems              FAX  :  +27 12  663  3281
> South Africa CAC
>           Email:  Pradesh_Chanderpaul@stratus.com
> <mailto:Pradesh_Chanderpaul@stratus.com> 
> ===============================================================
> 
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 

-- 
      FreeBSD - The Power To Serve http://www.freebsd.org
      My Webpage http://www.users.globalnet.co.uk/~markov
_______________________________________________________________
Mark Ovens, CNC Apps Engineer, Radan Computational Ltd. Bath UK
CAD/CAM solutions for Sheetmetal Working Industry
mailto:marko@uk.radan.com                  http://www.radan.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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