]> wimlib.net Git - wimlib/blobdiff - include/wimlib/types.h
Add WIMLIB_OPEN_FLAG_WRITE_ACCESS flag
[wimlib] / include / wimlib / types.h
index faf290c96f04c20d2937dbbe64cf6ca4e4039d40..dc0b550166977ac7ddef4cf6d5aa8eddfb8724ce 100644 (file)
@@ -19,10 +19,23 @@ typedef int8_t  s8;
 typedef int16_t s16;
 typedef int32_t s32;
 typedef int64_t s64;
+
+/* Unsigned little endian types of exact size */
+typedef uint8_t  le8;
+typedef uint16_t le16;
+typedef uint32_t le32;
+typedef uint64_t le64;
+
+/* Signed little endian types of exact size (declare as unsigned to avoid sign
+ * extension on big-endian architectures) */
+typedef uint8_t  sle8;
+typedef uint16_t sle16;
+typedef uint32_t sle32;
+typedef uint64_t sle64;
 #endif
 
 /* A pointer to 'utf16lechar' indicates a UTF-16LE encoded string */
-typedef u16 utf16lechar;
+typedef le16 utf16lechar;
 
 #ifndef WIMLIB_WIMSTRUCT_DECLARED
 typedef struct WIMStruct WIMStruct;