Mercurial > audlegacy-plugins
comparison src/modplug/stddefs.h @ 2122:1be75b01ded3
Use GLib types.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 23 Oct 2007 09:06:07 +0300 |
parents | 8f1c26966b61 |
children | 0c2b8d901d47 |
comparison
equal
deleted
inserted
replaced
2121:8f1c26966b61 | 2122:1be75b01ded3 |
---|---|
8 // | 8 // |
9 ////////////////////////////////////////////////////////////////////// | 9 ////////////////////////////////////////////////////////////////////// |
10 | 10 |
11 #if !defined(__MODPLUGXMMS_STDDEFS_H__INCLUDED__) | 11 #if !defined(__MODPLUGXMMS_STDDEFS_H__INCLUDED__) |
12 #define __MODPLUGXMMS_STDDEFS_H__INCLUDED__ | 12 #define __MODPLUGXMMS_STDDEFS_H__INCLUDED__ |
13 | |
14 #include <glib.h> | |
13 | 15 |
14 #define MODPLUG_CFGID "modplug" | 16 #define MODPLUG_CFGID "modplug" |
15 #define MODPLUG_CONVERT(X) g_convert(X, -1, "UTF-8", "CP850", NULL, NULL, NULL) | 17 #define MODPLUG_CONVERT(X) g_convert(X, -1, "UTF-8", "CP850", NULL, NULL, NULL) |
16 | 18 |
17 //Invalid pointer | 19 //Invalid pointer |
22 //Standard types. ---------------------------------------- | 24 //Standard types. ---------------------------------------- |
23 //These data types are provided because the standard types vary across | 25 //These data types are provided because the standard types vary across |
24 // platforms. For example, long is 64-bit on some 64-bit systems. | 26 // platforms. For example, long is 64-bit on some 64-bit systems. |
25 //u = unsigned | 27 //u = unsigned |
26 //# = size in bits | 28 //# = size in bits |
27 typedef unsigned char uchar; | 29 typedef guchar uchar; |
28 | 30 |
29 typedef char int8; | 31 typedef gint8 int8; |
30 typedef short int16; | 32 typedef gint16 int16; |
31 typedef int int32; | 33 typedef gint32 int32; |
32 typedef long long int64; | 34 typedef gint64 int64; |
33 | 35 |
34 typedef unsigned char uint8; | 36 typedef guint8 uint8; |
35 typedef unsigned short uint16; | 37 typedef guint16 uint16; |
36 typedef unsigned int uint32; | 38 typedef guint32 uint32; |
37 typedef unsigned long long uint64; | 39 typedef guint64 uint64; |
38 | 40 |
39 typedef float float32; | 41 typedef float float32; |
40 typedef double float64; | 42 typedef double float64; |
41 typedef long double float128; | 43 typedef long double float128; |
42 | 44 |