123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321 |
- #ifndef LZMA_H
- #define LZMA_H
- #ifndef LZMA_MANUAL_HEADERS
-
- # include <stddef.h>
-
- # if !defined(UINT32_C) || !defined(UINT64_C) \
- || !defined(UINT32_MAX) || !defined(UINT64_MAX)
-
- # if defined(_WIN32) && defined(_MSC_VER) && _MSC_VER < 1800
- typedef unsigned __int8 uint8_t;
- typedef unsigned __int32 uint32_t;
- typedef unsigned __int64 uint64_t;
- # else
-
- # ifdef __cplusplus
-
- # ifndef __STDC_LIMIT_MACROS
- # define __STDC_LIMIT_MACROS 1
- # endif
- # ifndef __STDC_CONSTANT_MACROS
- # define __STDC_CONSTANT_MACROS 1
- # endif
- # endif
- # include <inttypes.h>
- # endif
-
- # ifndef UINT32_C
- # if defined(_WIN32) && defined(_MSC_VER)
- # define UINT32_C(n) n ## UI32
- # else
- # define UINT32_C(n) n ## U
- # endif
- # endif
- # ifndef UINT64_C
- # if defined(_WIN32) && defined(_MSC_VER)
- # define UINT64_C(n) n ## UI64
- # else
-
- # include <limits.h>
- # if ULONG_MAX == 4294967295UL
- # define UINT64_C(n) n ## ULL
- # else
- # define UINT64_C(n) n ## UL
- # endif
- # endif
- # endif
- # ifndef UINT32_MAX
- # define UINT32_MAX (UINT32_C(4294967295))
- # endif
- # ifndef UINT64_MAX
- # define UINT64_MAX (UINT64_C(18446744073709551615))
- # endif
- # endif
- #endif
- #ifndef LZMA_API_IMPORT
- # if !defined(LZMA_API_STATIC) && defined(_WIN32) && !defined(__GNUC__)
- # define LZMA_API_IMPORT __declspec(dllimport)
- # else
- # define LZMA_API_IMPORT
- # endif
- #endif
- #ifndef LZMA_API_CALL
- # if defined(_WIN32) && !defined(__CYGWIN__)
- # define LZMA_API_CALL __cdecl
- # else
- # define LZMA_API_CALL
- # endif
- #endif
- #ifndef LZMA_API
- # define LZMA_API(type) LZMA_API_IMPORT type LZMA_API_CALL
- #endif
- #ifndef lzma_nothrow
- # if defined(__cplusplus)
- # define lzma_nothrow throw()
- # elif __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)
- # define lzma_nothrow __attribute__((__nothrow__))
- # else
- # define lzma_nothrow
- # endif
- #endif
- #if __GNUC__ >= 3
- # ifndef lzma_attribute
- # define lzma_attribute(attr) __attribute__(attr)
- # endif
-
- # ifndef lzma_attr_warn_unused_result
- # if __GNUC__ == 3 && __GNUC_MINOR__ < 4
- # define lzma_attr_warn_unused_result
- # endif
- # endif
- #else
- # ifndef lzma_attribute
- # define lzma_attribute(attr)
- # endif
- #endif
- #ifndef lzma_attr_pure
- # define lzma_attr_pure lzma_attribute((__pure__))
- #endif
- #ifndef lzma_attr_const
- # define lzma_attr_const lzma_attribute((__const__))
- #endif
- #ifndef lzma_attr_warn_unused_result
- # define lzma_attr_warn_unused_result \
- lzma_attribute((__warn_unused_result__))
- #endif
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define LZMA_H_INTERNAL 1
- #include "lzma/version.h"
- #include "lzma/base.h"
- #include "lzma/vli.h"
- #include "lzma/check.h"
- #include "lzma/filter.h"
- #include "lzma/bcj.h"
- #include "lzma/delta.h"
- #include "lzma/lzma12.h"
- #include "lzma/container.h"
- #include "lzma/stream_flags.h"
- #include "lzma/block.h"
- #include "lzma/index.h"
- #include "lzma/index_hash.h"
- #include "lzma/hardware.h"
- #undef LZMA_H_INTERNAL
- #ifdef __cplusplus
- }
- #endif
- #endif
|