changeset 2122:1be75b01ded3

Use GLib types.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 23 Oct 2007 09:06:07 +0300
parents 8f1c26966b61
children c349bd73af71
files src/modplug/stddefs.h
diffstat 1 files changed, 11 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/modplug/stddefs.h	Tue Oct 23 09:03:55 2007 +0300
+++ b/src/modplug/stddefs.h	Tue Oct 23 09:06:07 2007 +0300
@@ -11,6 +11,8 @@
 #if !defined(__MODPLUGXMMS_STDDEFS_H__INCLUDED__)
 #define __MODPLUGXMMS_STDDEFS_H__INCLUDED__
 
+#include <glib.h>
+
 #define MODPLUG_CFGID		"modplug"
 #define MODPLUG_CONVERT(X)	g_convert(X, -1, "UTF-8", "CP850", NULL, NULL, NULL)
 
@@ -24,17 +26,17 @@
 // platforms.  For example, long is 64-bit on some 64-bit systems.
 //u = unsigned
 //# = size in bits
-typedef unsigned char          uchar;
+typedef guchar                 uchar;
 
-typedef char                   int8;
-typedef short                  int16;
-typedef int                    int32;
-typedef long long              int64;
+typedef gint8                  int8;
+typedef gint16                 int16;
+typedef gint32                 int32;
+typedef gint64                 int64;
 
-typedef unsigned char          uint8;
-typedef unsigned short         uint16;
-typedef unsigned int           uint32;
-typedef unsigned long long     uint64;
+typedef guint8                 uint8;
+typedef guint16                uint16;
+typedef guint32                uint32;
+typedef guint64                uint64;
 
 typedef float                  float32;
 typedef double                 float64;