Re: int64_t == long long

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

 



John Love-Jensen wrote:
Keep in mind the portability issues surrounding use of long long, LL, and
ULL.  You may want to use the <stdint.h> INT64_C and UINT64_C macros to
construct your numeric literals.

INT64_C(65)
UINT64_C(65)

I'm using gcc 4.2.3 and this doesn't compile (INT64_C doesn't exist).

#include <stdint.h>
#include <stdio.h>

int
main()
{
  printf("%lld\n", INT64_C(0));
  return 0;
}

--
Yang Zhang
http://www.mit.edu/~y_z/

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux