openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Openexr-devel] Compiler compatibility (MS C/C++ 13.x)


From: Florian Kainz
Subject: Re: [Openexr-devel] Compiler compatibility (MS C/C++ 13.x)
Date: Mon, 31 Jan 2005 10:26:21 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030314

Aristarkh A Zagorodnikov wrote:
                Hello!

        I would like to note, that using IlmImf with MS C/C++ 13.x (from
MSVC 7.x) is not possible when language extensions are disabled (/Za
compiler switch). The problem is in ImfInt64.h with declaration of
Imf::Int64 type. The aforementioned compiler does not allow "long long"
declarations as 64-bit integer declarations when /Za switch is in effect.
The proposed solution is presented below:

ImfInt64.h
//      NOTE: begin of code changed by Aristarkh Zagorodnikov
#if defined PLATFORM_WIN32 && _MSC_VER >= 1300
        typedef unsigned __int64 Int64;
#else
    typedef long long unsigned int Int64;
#endif
//      NOTE: end of code changed by Aristarkh Zagorodnikov
/*
        NOTE: original code goes here

    typedef long long unsigned int Int64;
*/
#endif

        P.S. Thanks to developers of The Library :) - it works great.
Actually, I do not remember any library with such a seamless integration
(compared with its size of course).

Aristarkh A Zagorodnikov
X-Infinity Software


Thank you for pointing this out.  Do you know if /Za will
disable "long long unsigned int" on compiler versions
other than 13.x?

Florian







reply via email to

[Prev in Thread] Current Thread [Next in Thread]