Date: Thu, 27 Dec 2007 13:57:07 -0500 From: "Aryeh M. Friedman" <aryeh.friedman@gmail.com> To: Rob Belics <rob_belics@charter.net>, freebsd-ports@freebsd.org Subject: Re: Porting Windows program datatype problem Message-ID: <4773F583.6020400@gmail.com> In-Reply-To: <20071227185520.GA53485@hades.panopticon> References: <4773E79B.1090904@charter.net> <20071227185520.GA53485@hades.panopticon>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dmitry Marakasov wrote: > * Rob Belics (rob_belics@charter.net) 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? > > You can add compatibility header with > > typedef unsigned long ulong; > > That is easy and fast, and also least painful when you need to > update you port to new version of original sourcecode. > It is also the most likely to blow up in your face better to have a sed script. - -- Aryeh M. Friedman FloSoft Systems http://www.flosoft-systems.com Developer, not business, friendly -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHc/WDzIOMjAek4JIRAniCAKCh3abUGtScSuSdq1ogyfl7t3wJCgCeO5/P NvdJwOELR/DhiBnWDuYHcdo= =OxBY -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4773F583.6020400>