Use GLIB types if stdint.h is not available

This commit is contained in:
carlo-bramini 2017-11-05 16:08:43 +01:00
parent 90b0352343
commit 5a2bb5a109

View file

@ -128,6 +128,17 @@ typedef unsigned __int32 uint32_t;
typedef signed __int64 int64_t;
typedef unsigned __int64 uint64_t;
#else
/* Assume GLIB types */
typedef gint8 int8_t;
typedef guint8 uint8_t;
typedef gint16 int16_t;
typedef guint16 uint16_t;
typedef gint32 int32_t;
typedef guint32 uint32_t;
typedef guint64 uint64_t;
#endif
#if defined(WIN32) && HAVE_WINDOWS_H