[flac-dev] unsigned long long suffix
Erik de Castro Lopo
mle+la at mega-nerd.com
Thu Oct 10 02:20:41 PDT 2013
lvqcl wrote:
> share/compat.h contains the following code:
>
> /* adjust for compilers that can't understand using LLU suffix for uint64_t literals */
> #ifdef _MSC_VER
> #define FLAC__U64L(x) x
> #else
> #define FLAC__U64L(x) x##LLU
> #endif
>
> I tested MSVS 2005 and indeed it doesn't support LLU suffix, but it can compile
> a code with ULL suffix. Also, http://gcc.gnu.org/onlinedocs/gcc/Long-Long.html
> mentions ‘ULL’ suffix, not ‘LLU’.
>
> I don't know about VS2003 or earlier versions, but if FLAC supports only
> Visual Studio 2005 and newer, it's possible to reduce this code to:
>
> #define FLAC__U64L(x) x##ULL
I like that one! If that works in VS2005 and later I see no reason to use
anything else.
Cheers,
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
More information about the flac-dev
mailing list