]> wimlib.net Git - wimlib/blobdiff - include/wimlib/header.h
Merge branch 'wimboot_fast'
[wimlib] / include / wimlib / header.h
index 62d916f0656375e6d9b7bc46f1faead8e8ebb433..125457628d1806d5ffc1bf6f22b7115a1355036b 100644 (file)
@@ -3,7 +3,8 @@
 
 #include "wimlib/resource.h"
 #include "wimlib/types.h"
-#include "wimlib/endianness.h"
+
+#include <limits.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.  */