Debian Codegraph @

matio-1.5.30/visual_studio/matio_pubconf.h

raw symbols SCIP
1 /*
2 * Copyright (c) 2015-2026, The matio contributors
3 * Copyright (c) 2010-2014, Christopher C. Hulbert
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 *
9 * 1. Redistributions of source code must retain the above copyright notice, this
10 * list of conditions and the following disclaimer.
11 *
12 * 2. Redistributions in binary form must reproduce the above copyright notice,
13 * this list of conditions and the following disclaimer in the documentation
14 * and/or other materials provided with the distribution.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28 #ifndef MATIO_PUBCONF_H
29 #define MATIO_PUBCONF_H 1
30
31 /* Matio major version number */
32 #define MATIO_MAJOR_VERSION 1
33
34 /* Matio minor version number */
35 #define MATIO_MINOR_VERSION 5
36
37 /* Matio release level number */
38 #define MATIO_RELEASE_LEVEL 30
39
40 /* Matio version number */
41 #define MATIO_VERSION 1530
42
43 /* Matio version string */
44 #define MATIO_VERSION_STR "1.5.30"
45
46 /* Default file format */
47 #define MAT_FT_DEFAULT MAT_FT_MAT5
48
49 /* Define to 1 if you have the <stdint.h> header file. */
50 #if defined(_MSC_VER) && _MSC_VER >= 1600
51 #define MATIO_HAVE_STDINT_H 1
52 #else
53 #undef MATIO_HAVE_STDINT_H
54 #endif
55
56 /* Define to 1 if you have the <inttypes.h> header file. */
57 #if defined(_MSC_VER) && _MSC_VER >= 1800
58 #define MATIO_HAVE_INTTYPES_H 1
59 #else
60 #undef MATIO_HAVE_INTTYPES_H
61 #endif
62
63 #if MATIO_HAVE_STDINT_H
64 /* int16 type */
65 #define _mat_int16_t int16_t
66
67 /* int32 type */
68 #define _mat_int32_t int32_t
69
70 /* int64 type */
71 #define _mat_int64_t int64_t
72
73 /* int8 type */
74 #define _mat_int8_t int8_t
75
76 /* uint16 type */
77 #define _mat_uint16_t uint16_t
78
79 /* uint32 type */
80 #define _mat_uint32_t uint32_t
81
82 /* uint64 type */
83 #define _mat_uint64_t uint64_t
84
85 /* uint8 type */
86 #define _mat_uint8_t uint8_t
87 #else
88 /* int16 type */
89 #define _mat_int16_t short
90
91 /* int32 type */
92 #define _mat_int32_t int
93
94 /* int64 type */
95 #if defined(_MSC_VER) && _MSC_VER < 1300
96 #define _mat_int64_t __int64
97 #else
98 #define _mat_int64_t long long
99 #endif
100
101 /* int8 type */
102 #define _mat_int8_t signed char
103
104 /* uint16 type */
105 #define _mat_uint16_t unsigned short
106
107 /* uint32 type */
108 #define _mat_uint32_t unsigned
109
110 /* uint64 type */
111 #if defined(_MSC_VER) && _MSC_VER < 1300
112 #define _mat_uint64_t unsigned __int64
113 #else
114 #define _mat_uint64_t unsigned long long
115 #endif
116
117 /* uint8 type */
118 #define _mat_uint8_t unsigned char
119 #endif
120
121 #if MATIO_HAVE_INTTYPES_H
122 #include <inttypes.h>
123 #endif
124
125 #if MATIO_HAVE_STDINT_H
126 #include <stdint.h>
127 #else
128 #include "stdint_msvc.h"
129 #define MATIO_HAVE_STDINT_H 1
130 #endif
131
132 #ifdef _mat_int64_t
133 typedef _mat_int64_t mat_int64_t;
134 #endif
135 #ifdef _mat_uint64_t
136 typedef _mat_uint64_t mat_uint64_t;
137 #endif
138 #ifdef _mat_int32_t
139 typedef _mat_int32_t mat_int32_t;
140 #endif
141 #ifdef _mat_uint32_t
142 typedef _mat_uint32_t mat_uint32_t;
143 #endif
144 #ifdef _mat_int16_t
145 typedef _mat_int16_t mat_int16_t;
146 #endif
147 #ifdef _mat_uint16_t
148 typedef _mat_uint16_t mat_uint16_t;
149 #endif
150 #ifdef _mat_int8_t
151 typedef _mat_int8_t mat_int8_t;
152 #endif
153 #ifdef _mat_uint8_t
154 typedef _mat_uint8_t mat_uint8_t;
155 #endif
156
157 /*
158 The following macros handle noreturn attributes according to the latest
159 C11/C++11 standard with fallback to the MSVC extension if using an older
160 compiler.
161 */
162 #define MATIO_NORETURNATTR
163 #if __STDC_VERSION__ >= 201112L
164 #define MATIO_NORETURN _Noreturn
165 #elif __cplusplus >= 201103L
166 #define MATIO_NORETURN [[noreturn]]
167 #elif defined(_MSC_VER) && _MSC_VER >= 1200
168 #define MATIO_NORETURN __declspec(noreturn)
169 #else
170 #define MATIO_NORETURN
171 #endif
172
173 /*
174 The following macros handle format attributes for type-checks against a
175 format string.
176 */
177
178 #define MATIO_FORMATATTR_PRINTF1
179 #define MATIO_FORMATATTR_PRINTF2
180 #define MATIO_FORMATATTR_VPRINTF
181
182 /*
183 The following macro handles the deprecated attribute.
184 */
185
186 #if defined(__GNUC__) || defined(__clang__)
187 #define MATIO_DEPRECATED __attribute__((deprecated))
188 #elif defined(_MSC_VER)
189 #define MATIO_DEPRECATED __declspec(deprecated)
190 #else
191 #define MATIO_DEPRECATED
192 #endif
193
194 #endif /* MATIO_PUBCONF_H */