From owner-freebsd-questions Tue Jun 8 11:12:25 1999 Delivered-To: freebsd-questions@freebsd.org Received: from sand4.global.net.uk (sand4.global.net.uk [194.126.80.248]) by hub.freebsd.org (Postfix) with ESMTP id A0A1D14C46 for ; Tue, 8 Jun 1999 11:12:19 -0700 (PDT) (envelope-from marko@globalnet.co.uk) Received: from p48s01a06.client.global.net.uk ([195.147.209.73] helo=marder-1.) by sand4.global.net.uk with esmtp (Exim 2.12 #1) id 10rQMA-0004dU-00; Tue, 8 Jun 1999 19:12:15 +0100 Received: (from marko@localhost) by marder-1. (8.9.2/8.8.8) id TAA00356; Tue, 8 Jun 1999 19:10:08 +0100 (BST) (envelope-from marko) Date: Tue, 8 Jun 1999 19:10:08 +0100 From: Mark Ovens To: Pradesh_Chanderpaul@stratus.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Developing code for Non-Unix platform Message-ID: <19990608191007.C258@marder-1> References: <1D1A4EF7AD4DD211A80D00A0C9D7DB667E670E@exna1.stratus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <1D1A4EF7AD4DD211A80D00A0C9D7DB667E670E@exna1.stratus.com>; from Pradesh_Chanderpaul@stratus.com on Tue, Jun 08, 1999 at 10:56:51AM -0400 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 > > =============================================================== > > > > > 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