]> wimlib.net Git - wimlib/blobdiff - include/wimlib/header.h
win32_capture.c: adjust loading stream info from encrypted files
[wimlib] / include / wimlib / header.h
index 62d916f0656375e6d9b7bc46f1faead8e8ebb433..2cd1abaf66e962a538569b84b2d9abb69d86cbfe 100644 (file)
@@ -1,9 +1,10 @@
 #ifndef _WIMLIB_HEADER_H
 #define _WIMLIB_HEADER_H
 
+#include <limits.h>
+
 #include "wimlib/resource.h"
 #include "wimlib/types.h"
-#include "wimlib/endianness.h"
 
 /* Length of "Globally Unique ID" field in WIM header.  */
 #define WIM_GUID_LEN    16
@@ -115,6 +116,7 @@ struct wim_header_disk {
        /* +0xd0 (208)  */
 } _packed_attribute;
 
+#define MAX_IMAGES (((INT_MAX < INT32_MAX) ? INT_MAX : INT32_MAX) - 1)
 
 /* In-memory representation of a WIM header.  See `struct wim_header_disk' for
  * field descriptions.  */