Squirrel

The programming language
Welcome to Squirrel Sign in | Join | Help
in Search

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: Previous Next
  •  07-10-2008, 4:17 PM 2638 in reply to 2621

    Re: Unicode and AMD64 under Linux with gcc - long post

    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.


  •  07-19-2008, 10:28 AM 2642 in reply to 2638

    Re: Unicode and AMD64 under Linux with gcc - long post

    Good thanks, I'll put those in squirrel.h in the next version.

    Alberto

Page 2 of 2 (17 items)   < Previous 1 2
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems