Add gint64/guint64 if possible (HAVE_GINT64 is defined if we have it,
since I don't think "long long" works on 32-bit platforms that don't have
gcc...
AC_CHECK_SIZEOF(long)
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(void *)
+AC_CHECK_SIZEOF(long long)
# long doubles were not used, and a portability problem
# AC_C_LONG_DOUBLE
typedef unsigned long guint32;
#endif /* SIZEOF_INT */
+#if (SIZEOF_LONG == 8)
+#define HAVE_GINT64 1
+typedef signed long gint64;
+typedef unsigned long gint64;
+#elif (SIZEOF_LONG_LONG == 8)
+#define HAVE_GINT64 1
+typedef signed long long gint64;
+typedef unsigned long long guint64;
+#else
+/* No gint64 */
+#undef HAVE_GINT64
+#endif
+
+
/* Define macros for storing integers inside pointers */
#if (SIZEOF_INT == SIZEOF_VOID_P)
typedef unsigned long guint32;
#endif /* SIZEOF_INT */
+#if (SIZEOF_LONG == 8)
+#define HAVE_GINT64 1
+typedef signed long gint64;
+typedef unsigned long gint64;
+#elif (SIZEOF_LONG_LONG == 8)
+#define HAVE_GINT64 1
+typedef signed long long gint64;
+typedef unsigned long long guint64;
+#else
+/* No gint64 */
+#undef HAVE_GINT64
+#endif
+
+
/* Define macros for storing integers inside pointers */
#if (SIZEOF_INT == SIZEOF_VOID_P)
/* The number of bytes in a void *. */
#undef SIZEOF_VOID_P
+/* The number of bytes in a long long. */
+#undef SIZEOF_LONG_LONG
+
/* Define if you have the atexit function. */
#undef HAVE_ATEXIT