Debian Codegraph @

Source/7zip/Common/Types.h

raw
1 /*
2 * Types.h
3 *
4 * This file is a part of LZMA compression module for NSIS.
5 *
6 * Original LZMA SDK Copyright (C) 1999-2006 Igor Pavlov
7 * Modifications Copyright (C) 2003-2026 Amir Szekely <[email protected]>
8 *
9 * Licensed under the Common Public License version 1.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 *
12 * Licence details can be found in the file COPYING.
13 *
14 * This software is provided 'as-is', without any express or implied
15 * warranty.
16 */
17
18 #ifndef __COMMON_TYPES_H
19 #define __COMMON_TYPES_H
20
21 #ifdef _WIN32
22 #include <windows.h>
23
24 #ifndef _7ZIP_BYTE_DEFINED
25 #define _7ZIP_BYTE_DEFINED
26 typedef UINT8 Byte;
27 #endif
28
29 #ifndef _7ZIP_INT16_DEFINED
30 #define _7ZIP_INT16_DEFINED
31 typedef INT16 Int16;
32 #endif
33
34 #ifndef _7ZIP_UINT16_DEFINED
35 #define _7ZIP_UINT16_DEFINED
36 typedef UINT16 UInt16;
37 #endif
38
39 #ifndef _7ZIP_INT32_DEFINED
40 #define _7ZIP_INT32_DEFINED
41 typedef INT32 Int32;
42 #endif
43
44 #ifndef _7ZIP_UINT32_DEFINED
45 #define _7ZIP_UINT32_DEFINED
46 typedef UINT32 UInt32;
47 #endif
48
49 #ifndef _7ZIP_INT64_DEFINED
50 #define _7ZIP_INT64_DEFINED
51 typedef INT64 Int64;
52 #endif
53
54 #ifndef _7ZIP_UINT64_DEFINED
55 #define _7ZIP_UINT64_DEFINED
56 typedef UINT64 UInt64;
57 #endif
58
59 #else // !_WIN32
60
61 #include <stdint.h>
62
63 #ifndef _7ZIP_BYTE_DEFINED
64 #define _7ZIP_BYTE_DEFINED
65 typedef uint8_t Byte;
66 #endif
67
68 #ifndef _7ZIP_INT16_DEFINED
69 #define _7ZIP_INT16_DEFINED
70 typedef int16_t Int16;
71 #endif
72
73 #ifndef _7ZIP_UINT16_DEFINED
74 #define _7ZIP_UINT16_DEFINED
75 typedef uint16_t UInt16;
76 #endif
77
78 #ifndef _7ZIP_INT32_DEFINED
79 #define _7ZIP_INT32_DEFINED
80 typedef int32_t Int32;
81 #endif
82
83 #ifndef _7ZIP_UINT32_DEFINED
84 #define _7ZIP_UINT32_DEFINED
85 typedef uint32_t UInt32;
86 #endif
87
88 #ifndef _7ZIP_INT64_DEFINED
89 #define _7ZIP_INT64_DEFINED
90 typedef int64_t Int64;
91 #endif
92
93 #ifndef _7ZIP_UINT64_DEFINED
94 #define _7ZIP_UINT64_DEFINED
95 typedef uint64_t UInt64;
96 #endif
97
98 #endif
99
100 #endif