Re: Question about ULLONG_MAX

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

 



On Mon, 2 Jul 2007, Glynn Clements wrote:


Holger Kiehl wrote:

Compiling the above on AIX compiles and runs without problems. Also
on an older Solaris 8 system using gcc (3.3.2) it compiles and runs
straight out of the box.

If I want to use ULLONG_MAX how can I do this in a portable way so it
compiles on different systems?

You need to explicitly enable C99 support; "long long" isn't in C89,
so you shouldn't assume that it will be available when using the
default compilation settings.

You are right. Enabling C99 support explicitly is the better solution.

Thanks,
Holger

-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux