OSDN Git Service

topology: Support configuring physical DAIs by C API
[android-x86/external-alsa-lib.git] / include / type_compat.h
1 /*
2  *  ALSA lib - compatibility header to be included by local.h
3  *  Copyright (c) 2016 by  Thomas Klausner <wiz@NetBSD.org>
4  *
5  *
6  *   This library is free software; you can redistribute it and/or modify
7  *   it under the terms of the GNU Lesser General Public License as
8  *   published by the Free Software Foundation; either version 2.1 of
9  *   the License, or (at your option) any later version.
10  *
11  *   This program is distributed in the hope that it will be useful,
12  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *   GNU Lesser General Public License for more details.
15  *
16  *   You should have received a copy of the GNU Lesser General Public
17  *   License along with this library; if not, write to the Free Software
18  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19  *
20  */
21
22 #ifndef __TYPE_COMPAT_H
23 #define __TYPE_COMPAT_H
24
25 #ifndef EBADFD
26 #define EBADFD EBADF
27 #endif
28 #ifndef ESTRPIPE
29 #define ESTRPIPE EPIPE
30 #endif
31
32 #ifndef __u16
33 #define __u16   uint16_t
34 #endif
35 #ifndef __u32
36 #define __u32   uint32_t
37 #endif
38 #ifndef __u64
39 #define __u64   uint64_t
40 #endif
41 #ifndef __le16
42 #define __le16  uint16_t
43 #endif
44 #ifndef __le32
45 #define __le32  uint32_t
46 #endif
47 #ifndef __le64
48 #define __le64  uint64_t
49 #endif
50 #ifndef u_int8_t
51 #define u_int8_t        uint8_t
52 #endif
53 #ifndef u_int16_t
54 #define u_int16_t       uint16_t
55 #endif
56 #ifndef u_int32_t
57 #define u_int32_t       uint32_t
58 #endif
59 #ifndef u_int32_t
60 #define u_int32_t       uint64_t
61 #endif
62 #ifndef __kernel_pid_t
63 #define __kernel_pid_t  pid_t
64 #endif
65 #ifndef __kernel_off_t
66 #define __kernel_off_t  off_t
67 #endif
68
69 #ifndef __bitwise
70 #define __bitwise
71 #endif
72
73 #endif