From owner-freebsd-ports@FreeBSD.ORG Thu Dec 27 19:25:31 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 156E216A418 for ; Thu, 27 Dec 2007 19:25:31 +0000 (UTC) (envelope-from stephen@math.missouri.edu) Received: from cauchy.math.missouri.edu (cauchy.math.missouri.edu [128.206.184.213]) by mx1.freebsd.org (Postfix) with ESMTP id E368413C4CC for ; Thu, 27 Dec 2007 19:25:30 +0000 (UTC) (envelope-from stephen@math.missouri.edu) Received: from laptop2.gateway.2wire.net (cauchy.math.missouri.edu [128.206.184.213]) by cauchy.math.missouri.edu (8.14.2/8.14.1) with ESMTP id lBRJP2pA070249; Thu, 27 Dec 2007 13:25:04 -0600 (CST) (envelope-from stephen@math.missouri.edu) Message-ID: <4773FC27.5090006@math.missouri.edu> Date: Thu, 27 Dec 2007 13:25:27 -0600 From: Stephen Montgomery-Smith User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.11) Gecko/20071221 SeaMonkey/1.1.7 MIME-Version: 1.0 To: "Aryeh M. Friedman" References: <4773E79B.1090904@charter.net> <4773F1B3.8000007@gmail.com> In-Reply-To: <4773F1B3.8000007@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Rob Belics , freebsd-ports@freebsd.org Subject: Re: Porting Windows program datatype problem X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Dec 2007 19:25:31 -0000 Aryeh M. Friedman wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Rob Belics wrote: >> There is a Windows open source program I would like to port to >> FreeBSD. It seems to compile OK, using gcc, but chokes on >> MS/Windows only type data types like 'ulong'. What would be the >> easiest way to fix/convert these, or must it be done manually? >> > > Sed is your friend. I think the OP wants to know if there is a web site or such like that systematically lists all the differences between Windows C and gcc, and whether there is a program out there that does this all automagically. (But I would go with Dmitry's suggestion over Aryeh's - I would only take Aryeh's route if Dmitry's approach genuinely did blow up in my face.) Stephen