X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=include%2Fwimlib%2Ftypes.h;fp=include%2Fwimlib%2Ftypes.h;h=faf290c96f04c20d2937dbbe64cf6ca4e4039d40;hp=0000000000000000000000000000000000000000;hb=e8c3ca2d1d0cac3d64985b45a9f654d2029a7518;hpb=726f9bbd0bd664294fce8a50be1d5b6881df8d16 diff --git a/include/wimlib/types.h b/include/wimlib/types.h new file mode 100644 index 00000000..faf290c9 --- /dev/null +++ b/include/wimlib/types.h @@ -0,0 +1,32 @@ +#ifndef _WIMLIB_TYPES_H +#define _WIMLIB_TYPES_H + +#include "wimlib_tchar.h" + +#include +#include +#include + +#ifndef _NTFS_TYPES_H +/* Unsigned integer types of exact size in bits */ +typedef uint8_t u8; +typedef uint16_t u16; +typedef uint32_t u32; +typedef uint64_t u64; + +/* Signed integer types of exact size in bits */ +typedef int8_t s8; +typedef int16_t s16; +typedef int32_t s32; +typedef int64_t s64; +#endif + +/* A pointer to 'utf16lechar' indicates a UTF-16LE encoded string */ +typedef u16 utf16lechar; + +#ifndef WIMLIB_WIMSTRUCT_DECLARED +typedef struct WIMStruct WIMStruct; +# define WIMLIB_WIMSTRUCT_DECLARED +#endif + +#endif