aboutsummaryrefslogtreecommitdiffstats
path: root/src/mpd_types.h
blob: 1b8aaa0d50dcddaeb90c7710331e46b829700f09 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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