File: config.h

package info (click to toggle)
rust-liblzma-sys 0.3.7-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 276 kB
  • sloc: ansic: 97; makefile: 4
file content (61 lines) | stat: -rw-r--r-- 1,595 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// 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_ARM 1
#define HAVE_ENCODER_ARM 1
#define HAVE_DECODER_ARM64 1
#define HAVE_ENCODER_ARM64 1
#define HAVE_DECODER_ARMTHUMB 1
#define HAVE_ENCODER_ARMTHUMB 1
#define HAVE_DECODER_DELTA 1
#define HAVE_ENCODER_DELTA 1
#define HAVE_DECODER_IA64 1
#define HAVE_ENCODER_IA64 1
#define HAVE_DECODER_POWERPC 1
#define HAVE_ENCODER_POWERPC 1
#define HAVE_DECODER_RISCV 1
#define HAVE_ENCODER_RISCV 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)
    #if defined(LZMA_SYS_ENABLE_THREADS)
        // change to `MYTHREAD_WIN95` if targeting Windows XP or earlier
        #define MYTHREAD_VISTA 1
    #endif
#else
    #define _POSIX_C_SOURCE 199506L
    #if defined(LZMA_SYS_ENABLE_THREADS)
        #define MYTHREAD_POSIX 1
    #endif
#endif

#if defined(__sun)
    #define HAVE_CLOCK_GETTIME 1
    #define HAVE_DECL_CLOCK_MONOTONIC 1
#endif