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: jemarch
Subject: Re: [pdf-devel] Re: need better testing for int64_t
Date: Fri, 04 Dec 2009 11:43:17 +0100
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/23.0.92 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

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]