pdf-devel
[Top][All Lists]
Advanced

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

Re: [pdf-devel] Re: need better testing for int64_t


From: Scott Fohey
Subject: Re: [pdf-devel] Re: need better testing for int64_t
Date: Fri, 4 Dec 2009 13:55:08 -0500

That should cover all the possibilities. I like it.

On Dec 4, 2009 5:48 AM, <address@hidden> wrote:


Hi Scott.

Perhaps the attached patch is the "right way" to identify int64_t presence?

The problem of that approach is that, in architectures missing
stdint.h, HAVE_INT64_T would not be defined but a suitable int64_t
would be provided by gnulib.

To cover those cases, and since the gnulib stdint.h is always
#defining int64_t, I would also check for int64_t:

  -#if defined(int64_t) && !defined(PDF_FORCE_BIGNUMS)
  +/* Note that int64_t may be defined by the gnulib stdint.h in
  +   platforms missing that header file. */
  +#if (defined(HAVE_INT64_T) || defined(int64_t)) && !defined(PDF_FORCE_BIGNUMS)

#define PDF_USE_BUILTIN_64BIT_SUPPORT #endif

What do you think?


reply via email to

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