1 /*
2  * Copyright (C) 2014 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef _EXT4_UTILS_EXT4_KERNEL_HEADERS_H_
18 #define _EXT4_UTILS_EXT4_KERNEL_HEADERS_H_
19 
20 #include <stdint.h>
21 
22 #ifdef __BIONIC__
23 #include <sys/types.h>
24 #else
25 #define __le64 uint64_t
26 #define __le32 uint32_t
27 #define __le16 uint16_t
28 
29 #define __be64 uint64_t
30 #define __be32 uint32_t
31 #define __be16 uint16_t
32 
33 #define __u64 uint64_t
34 #define __u32 uint32_t
35 #define __u16 uint16_t
36 #define __u8 uint8_t
37 #endif
38 
39 #include "ext4_utils/ext4.h"
40 #include "ext4_utils/ext4_extents.h"
41 #include "ext4_utils/jbd2.h"
42 #include "ext4_utils/xattr.h"
43 
44 #ifndef __BIONIC__
45 #undef __le64
46 #undef __le32
47 #undef __le16
48 
49 #undef __be64
50 #undef __be32
51 #undef __be16
52 
53 #undef __u64
54 #undef __u32
55 #undef __u16
56 #undef __u8
57 #endif
58 
59 #endif
60