diff options
author | Xin LI <delphij@FreeBSD.org> | 2014-03-04 23:23:55 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2014-03-04 23:23:55 +0000 |
commit | 442b7425c6da3ee6e0a16d65b5458a795dcc47d1 (patch) | |
tree | 3349fe96bd5cf94db21a768ba361dc35fefbf7d6 /userspace/xz_config.h | |
parent | 38f44a8c7c3367df45180852ee34d7d0a81b4ed7 (diff) |
Notes
Diffstat (limited to 'userspace/xz_config.h')
-rw-r--r-- | userspace/xz_config.h | 17 |
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> |