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?