mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-26 19:08:57 +02: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:
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)
|
||||
|
Reference in New Issue
Block a user