From 5a2bb5a1090c7700d467eea2bd67218e5320b24a Mon Sep 17 00:00:00 2001 From: carlo-bramini Date: Sun, 5 Nov 2017 16:08:43 +0100 Subject: [PATCH] Use GLIB types if stdint.h is not available --- src/utils/fluidsynth_priv.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/utils/fluidsynth_priv.h b/src/utils/fluidsynth_priv.h index 01271005..24c69a67 100644 --- a/src/utils/fluidsynth_priv.h +++ b/src/utils/fluidsynth_priv.h @@ -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