stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anton Pevtsov" <Ant...@moscow.vdiweb.com>
Subject Localization\22.locale.num.get test compilation problem on VC7.1
Date Tue, 25 Oct 2005 14:50:44 GMT
There is a problem in the localization\22.locale.num.get.cpp (line 1578)
:

#  ifndef _MSC_VER
#    define ULL(number)   number ## ULL
#  else   // if defined (_MSC_VER)
     // MSVC 7.0 doesn't recognize the LL suffix
#    define LL(number)   number ## UI64
#  endif   // _MSC_VER

    TEST (T, ULL (                  0),                     "0",  1, 0,
Eof);
    TEST (T, ULL (                  0),                    "+0",  2, 0,
Eof);
    TEST (T, ULL (                  0),                    "-0",  2, 0,
Eof);
    TEST (T, ULL (                  1),                    "+1",  2, 0,
Eof);
    TEST (T, ULL (                1080),                 "1080",  4, 0,
Eof);
    TEST (T, ULL (18446744073709551615), "18446744073709551615", 20, 0,
Eof);

So, if  _MSC_VER is defined then ULL becomes undefined. Maybe, here 

     // MSVC 7.0 doesn't recognize the LL suffix
#    define LL(number)   number ## UI64

instead of "LL" should be "ULL" :

     // MSVC 7.0 doesn't recognize the ULL suffix
#    define ULL(number)   number ## UI64

?


With best wishes,
Anton Pevtsov.

Mime
View raw message