[Psi-devel] [PATCH] fox for gcc on 64bit archs
Maciek Niedzielski
machekku at uaznia.net
Tue Jan 2 16:00:26 PST 2007
Przemysław Maciąg wrote:
> Dnia środa, 3 stycznia 2007 00:27, Maciek Niedzielski napisał:
>> Yes, but if it doesn't know "__WORDSIZE", then it won't work even on
>> 32bit systems, so the fix may break more things than fix.
>
> we can add simple #if defined for linux (and very probably macosx), but I have
> completely no idea, what to do on windows - not my speciality ;)
It depends on your compiler, not OS ;)
>> (as a sidenote, it works in VS2003, but still I find these underscores
>> rather suspicious)
>
> after upgrading to visual 2005 you would need something like this:
> #define _CRT_NONSTDC_NO_WARNINGS
> in stdafx.h, to compile programs with function like strcpy, without extra
> warnings (but it's an single underscore at the beggining, not double ;), as
> you can see ).
Names starting with an underscore are reserved for implementation
purposes, no matter how many underscores are there ;)
Plus you can put this define inside other #ifdef checking compiler version.
--
Maciek
xmpp:machekku at uaznia.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 257 bytes
Desc: OpenPGP digital signature
Url : http://lists.affinix.com/pipermail/psi-devel-affinix.com/attachments/20070103/be0f76b1/attachment-0001.pgp
More information about the psi-devel
mailing list