]> wimlib.net Git - wimlib/blob - include/wimlib/types.h
Refactor headers
[wimlib] / include / wimlib / types.h
1 #ifndef _WIMLIB_TYPES_H
2 #define _WIMLIB_TYPES_H
3
4 #include "wimlib_tchar.h"
5
6 #include <inttypes.h>
7 #include <stdbool.h>
8 #include <stddef.h>
9
10 #ifndef _NTFS_TYPES_H
11 /* Unsigned integer types of exact size in bits */
12 typedef uint8_t  u8;
13 typedef uint16_t u16;
14 typedef uint32_t u32;
15 typedef uint64_t u64;
16
17 /* Signed integer types of exact size in bits */
18 typedef int8_t  s8;
19 typedef int16_t s16;
20 typedef int32_t s32;
21 typedef int64_t s64;
22 #endif
23
24 /* A pointer to 'utf16lechar' indicates a UTF-16LE encoded string */
25 typedef u16 utf16lechar;
26
27 #ifndef WIMLIB_WIMSTRUCT_DECLARED
28 typedef struct WIMStruct WIMStruct;
29 #  define WIMLIB_WIMSTRUCT_DECLARED
30 #endif
31
32 #endif