Squirrel
The programming language
Welcome to Squirrel
Sign in
|
Join
|
Help
in
Bugs (forum)
Development (group)
(Entire Site)
Search
Home
Forums
Squirrel
»
Development
»
Bugs
»
Unicode and AMD64 under Linux with gcc - long post
Unicode and AMD64 under Linux with gcc - long post
Last post 07-19-2008, 10:28 AM by
fagiano
. 16 replies.
Page 2 of 2 (17 items)
< Previous
1
2
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
07-10-2008, 4:17 PM
2638
in reply to
2621
James Gregory
Joined on 10-05-2006
Posts 12
Re: Unicode and AMD64 under Linux with gcc - long post
Reply
Quote
According to
http://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html:
"
__LP64__
_LP64
These macros are defined, with value 1, if (and only if) the compilation is for a target where long int and pointer both use 64-bits and int uses 32-bit.
"
I believe _LP64 is the more commonly used one.
According to
http://msdn.microsoft.com/en-us/library/b0084kay(VS.80).aspx
and http://msdn.microsoft.com/en-us/library/b0084kay(VS.71).aspx
"
_M_IA64
Defined for 64-bit processors.
_WIN64 Defined for applications for Win64.
"
_M_IA64 isn't much use because it is defined even if you are using a 32 bit OS/compiler. So _WIN64 is the useful one for Windows.
Report abuse
07-19-2008, 10:28 AM
2642
in reply to
2638
fagiano
Joined on 06-12-2005
Posts 440
Re: Unicode and AMD64 under Linux with gcc - long post
Reply
Quote
Good thanks, I'll put those in squirrel.h in the next version.
Alberto
Report abuse
Page 2 of 2 (17 items)
< Previous
1
2
Alberto Demichelis 2003-2008