Fix building for mkyaffsimage and mkyaffs2image
[yaffs2.git] / utils / yutilsenv.h
1 /*
2  * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
3  *
4  * Copyright (C) 2002-2018 Aleph One Ltd.
5  *
6  * Created by Charles Manning <charles@aleph1.co.uk>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU Lesser General Public License version 2.1 as
10  * published by the Free Software Foundation.
11  *
12  * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
13  */
14
15
16 #ifndef __YAFFS_UTILSENV_H__
17 #define __YAFFS_UTILSENV_H__
18
19 #define YCHAR char
20 #define YUCHAR unsigned char
21
22 #ifndef u8
23 #define u8 unsigned char
24 #endif
25
26 #ifndef u16
27 #define u16 unsigned short
28 #endif
29
30 #ifndef u32
31 #define u32 unsigned int
32 #endif
33
34 #ifndef s32
35 #define s32 int
36 #endif
37
38
39 #include <sys/types.h>
40 #include <string.h>
41 #include "yaffs_list.h"
42 #include "yaffs_hweight.h"
43
44 #define hweight8(x) yaffs_hweight8(x)
45 #define hweight32(x) yaffs_hweight32(x)
46
47 #define yaffs_trace(...) do {} while (0)
48 #endif