summaryrefslogtreecommitdiffstats
path: root/depends/xz-embedded/src/xz_stream.h
diff options
context:
space:
mode:
authorSky <git@bunnies.cc>2013-11-06 17:02:23 +0000
committerSky <git@bunnies.cc>2013-11-06 17:02:23 +0000
commit7ddc2b6a89e1b57be1eaa44aa8018ff8af765c7a (patch)
tree2753d1ee11dad2cf1c4ce1e8a28ead92214f2f1c /depends/xz-embedded/src/xz_stream.h
parentdc3b0fcb2b74aeede37b08216b203cab284f7fce (diff)
parentbba4ed5ab2c98c3d60a141d6a089a49716753615 (diff)
downloadMultiMC-7ddc2b6a89e1b57be1eaa44aa8018ff8af765c7a.tar
MultiMC-7ddc2b6a89e1b57be1eaa44aa8018ff8af765c7a.tar.gz
MultiMC-7ddc2b6a89e1b57be1eaa44aa8018ff8af765c7a.tar.lz
MultiMC-7ddc2b6a89e1b57be1eaa44aa8018ff8af765c7a.tar.xz
MultiMC-7ddc2b6a89e1b57be1eaa44aa8018ff8af765c7a.zip
Merge branch 'develop'
Diffstat (limited to 'depends/xz-embedded/src/xz_stream.h')
-rw-r--r--depends/xz-embedded/src/xz_stream.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/depends/xz-embedded/src/xz_stream.h b/depends/xz-embedded/src/xz_stream.h
index 66cb5a70..c0e191e6 100644
--- a/depends/xz-embedded/src/xz_stream.h
+++ b/depends/xz-embedded/src/xz_stream.h
@@ -11,10 +11,9 @@
#define XZ_STREAM_H
#if defined(__KERNEL__) && !XZ_INTERNAL_CRC32
-# include <linux/crc32.h>
-# undef crc32
-# define xz_crc32(buf, size, crc) \
- (~crc32_le(~(uint32_t)(crc), buf, size))
+#include <linux/crc32.h>
+#undef crc32
+#define xz_crc32(buf, size, crc) (~crc32_le(~(uint32_t)(crc), buf, size))
#endif
/*
@@ -42,14 +41,15 @@
*/
typedef uint64_t vli_type;
-#define VLI_MAX ((vli_type)-1 / 2)
-#define VLI_UNKNOWN ((vli_type)-1)
+#define VLI_MAX ((vli_type) - 1 / 2)
+#define VLI_UNKNOWN ((vli_type) - 1)
/* Maximum encoded size of a VLI */
#define VLI_BYTES_MAX (sizeof(vli_type) * 8 / 7)
/* Integrity Check types */
-enum xz_check {
+enum xz_check
+{
XZ_CHECK_NONE = 0,
XZ_CHECK_CRC32 = 1,
XZ_CHECK_CRC64 = 4,