summaryrefslogtreecommitdiffstats
path: root/vendor/lzma-sys/config.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
commit698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch)
tree173a775858bd501c378080a10dca74132f05bc50 /vendor/lzma-sys/config.h
parentInitial commit. (diff)
downloadrustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz
rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/lzma-sys/config.h')
-rw-r--r--vendor/lzma-sys/config.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/vendor/lzma-sys/config.h b/vendor/lzma-sys/config.h
new file mode 100644
index 000000000..9e3e9d692
--- /dev/null
+++ b/vendor/lzma-sys/config.h
@@ -0,0 +1,45 @@
+// Configuration values for `liblzma`
+
+// tell `liblzma` to look for standard C99 headers
+#define HAVE_STDINT_H 1
+#define HAVE_STDBOOL_H 1
+#define HAVE_STRING_H 1
+
+// enable encoders/decoders
+#define HAVE_DECODER_LZMA1 1
+#define HAVE_DECODER_LZMA2 1
+#define HAVE_ENCODER_LZMA1 1
+#define HAVE_ENCODER_LZMA2 1
+#define HAVE_DECODER_LZ 1
+#define HAVE_ENCODER_LZ 1
+#define HAVE_DECODER_DELTA 1
+#define HAVE_ENCODER_DELTA 1
+#define HAVE_DECODER_SPARC 1
+#define HAVE_ENCODER_SPARC 1
+#define HAVE_DECODER_X86 1
+#define HAVE_ENCODER_X86 1
+
+// enable checksums
+#define HAVE_CHECK_SHA256 1
+#define HAVE_CHECK_CRC64 1
+#define HAVE_CHECK_CRC32 1
+
+// enable other liblzma stuff
+#define HAVE_MF_BT2 1
+#define HAVE_MF_BT3 1
+#define HAVE_MF_BT4 1
+#define HAVE_MF_HC3 1
+#define HAVE_MF_HC4 1
+
+#if defined(MSC_VER) || defined(WIN32) || defined(WIN64) || defined(_WIN32)
+ // change to `MYTHREAD_WIN95` if targeting Windows XP or earlier
+ #define MYTHREAD_VISTA 1
+#else
+ #define _POSIX_C_SOURCE 199506L
+ #define MYTHREAD_POSIX 1
+#endif
+
+#if defined(__sun)
+ #define HAVE_CLOCK_GETTIME 1
+ #define HAVE_DECL_CLOCK_MONOTONIC 1
+#endif