2 * Copyright (C) 2014 Collabora Ltd.
3 * Author: Nicolas Dufresne <nicolas@ndufresne.ca>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
24 #ifndef __TYPES_COMPAT_H__
25 #define __TYPES_COMPAT_H__
27 /* From linux/types.h */
30 # define __bitwise__ __attribute__((bitwise))
37 # ifdef __CHECK_ENDIAN__
38 # define __bitwise __bitwise__
50 #define __le32 guint32 __bitwise
52 #endif /* __TYPES_COMPAT_H__ */