[Psi-devel] [PATCH] fox for gcc on 64bit archs

Przemysław Maciąg pmaciag at gmail.com
Tue Jan 2 16:10:37 PST 2007


Dnia środa, 3 stycznia 2007 01:00, Maciek Niedzielski napisał:
> 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 ;)

true, but it's kind of related ;)

> >> (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.

also true :)

Regards,
Przemek
-- 
--------------------------------------------------------------------------
Email: pmaciag (at) gmail.com               Przemysław Maciąg
Email: przema (at) kontron.pl
Reg Linux User#: 303556             "Życie jest jak pudełko czekoladek..."
GPG: 2A84608A [www.keyserver.net]      "Nigdy nie wiesz na co trafisz."
--------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.affinix.com/pipermail/psi-devel-affinix.com/attachments/20070103/3bf1f6ec/attachment.pgp 


More information about the psi-devel mailing list