mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
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:
parent
d59147e308
commit
4e2aaa2372
@ -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
14
glib.h
@ -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)
|
||||
|
14
glib/glib.h
14
glib/glib.h
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user