Add gint64/guint64 if possible (HAVE_GINT64 is defined if we have it,

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...
This commit is contained in:
Elliot Lee 1998-07-20 15:53:36 +00:00
parent d59147e308
commit 4e2aaa2372
4 changed files with 32 additions and 0 deletions

View File

@ -120,6 +120,7 @@ AC_CHECK_SIZEOF(short)
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

14
glib.h
View File

@ -411,6 +411,20 @@ typedef signed long gint32;
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)

View File

@ -411,6 +411,20 @@ typedef signed long gint32;
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)

View File

@ -56,6 +56,9 @@
/* 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