Porting Windows program datatype problem

Aryeh M. Friedman aryeh.friedman at gmail.com
Thu Dec 27 10:57:29 PST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dmitry Marakasov wrote:
> * Rob Belics (rob_belics at 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-----



More information about the freebsd-ports mailing list