aboutsummaryrefslogtreecommitdiffstats
path: root/src/mpd_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mpd_types.h')
-rw-r--r--src/mpd_types.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/mpd_types.h b/src/mpd_types.h
new file mode 100644
index 000000000..1b8aaa0d5
--- /dev/null
+++ b/src/mpd_types.h
@@ -0,0 +1,23 @@
+#ifndef MPD_TYPES_H
+#define MPD_TYPES_H
+
+typedef unsigned char mpd_uint8;
+typedef signed char mpd_sint8;
+
+#if SIZEOF_SHORT == 2
+typedef unsigned short mpd_uint16;
+typedef signed short mpd_sint16;
+#elif SIZEOF_INT == 2
+typedef unsigned short mpd_uint16;
+typedef signed short mpd_sint16;
+#endif
+
+#if SIZEOF_INT == 4
+typedef unsigned int mpd_uint32;
+typedef signed int mpd_sint32;
+#elif SIZEOF_LONG == 4
+typedef unsigned int mpd_uint32;
+typedef signed int mpd_sint32;
+#endif
+
+#endif