summaryrefslogtreecommitdiff
path: root/userspace/xz_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'userspace/xz_config.h')
-rw-r--r--userspace/xz_config.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/userspace/xz_config.h b/userspace/xz_config.h
index 71bb0293fe3d..eb9dac1a4bda 100644
--- a/userspace/xz_config.h
+++ b/userspace/xz_config.h
@@ -10,6 +10,9 @@
#ifndef XZ_CONFIG_H
#define XZ_CONFIG_H
+/* Uncomment to enable CRC64 support. */
+/* #define XZ_USE_CRC64 */
+
/* Uncomment as needed to enable BCJ filter decoders. */
/* #define XZ_DEC_X86 */
/* #define XZ_DEC_POWERPC */
@@ -18,7 +21,19 @@
/* #define XZ_DEC_ARMTHUMB */
/* #define XZ_DEC_SPARC */
-#include <stdbool.h>
+/*
+ * MSVC doesn't support modern C but XZ Embedded is mostly C89
+ * so these are enough.
+ */
+#ifdef _MSC_VER
+typedef unsigned char bool;
+# define true 1
+# define false 0
+# define inline __inline
+#else
+# include <stdbool.h>
+#endif
+
#include <stdlib.h>
#include <string.h>