]> wimlib.net Git - wimlib/blobdiff - include/wimlib/types.h
portability and compression cleanups
[wimlib] / include / wimlib / types.h
index ac67cf4a9a810b0fd7b0a34bc7e1f2c7340c4de9..84b55be31f0a1030dda7a44f89c00e6233d1960c 100644 (file)
@@ -47,4 +47,13 @@ typedef struct WIMStruct WIMStruct;
 #  define WIMLIB_WIMSTRUCT_DECLARED
 #endif
 
-#endif
+/*
+ * Type of a machine word.  'unsigned long' would be logical, but that is only
+ * 32 bits on x86_64 Windows.  The same applies to 'uint_fast32_t'.  So the best
+ * we can do without a bunch of #ifdefs appears to be 'size_t'.
+ */
+typedef size_t machine_word_t;
+
+#define WORDSIZE       sizeof(machine_word_t)
+
+#endif /* _WIMLIB_TYPES_H */