From d35747a40c7dea12de95f78a4f283a45ef687597 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Mon, 23 Feb 2004 23:41:20 +0000 Subject: import from SF CVS git-svn-id: https://svn.musicpd.org/mpd/trunk@1 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/mpd_types.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/mpd_types.h (limited to 'src/mpd_types.h') 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 -- cgit v1.2.3