| 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 |
#ifndef MATIO_PUBCONF_H |
| 29 |
#define MATIO_PUBCONF_H 1 |
| 30 |
|
| 31 |
|
| 32 |
#define MATIO_MAJOR_VERSION 1 |
| 33 |
|
| 34 |
|
| 35 |
#define MATIO_MINOR_VERSION 5 |
| 36 |
|
| 37 |
|
| 38 |
#define MATIO_RELEASE_LEVEL 30 |
| 39 |
|
| 40 |
|
| 41 |
#define MATIO_VERSION 1530 |
| 42 |
|
| 43 |
|
| 44 |
#define MATIO_VERSION_STR "1.5.30" |
| 45 |
|
| 46 |
|
| 47 |
#define MAT_FT_DEFAULT MAT_FT_MAT5 |
| 48 |
|
| 49 |
|
| 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 |
|
| 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 |
|
| 65 |
#define _mat_int16_t int16_t |
| 66 |
|
| 67 |
|
| 68 |
#define _mat_int32_t int32_t |
| 69 |
|
| 70 |
|
| 71 |
#define _mat_int64_t int64_t |
| 72 |
|
| 73 |
|
| 74 |
#define _mat_int8_t int8_t |
| 75 |
|
| 76 |
|
| 77 |
#define _mat_uint16_t uint16_t |
| 78 |
|
| 79 |
|
| 80 |
#define _mat_uint32_t uint32_t |
| 81 |
|
| 82 |
|
| 83 |
#define _mat_uint64_t uint64_t |
| 84 |
|
| 85 |
|
| 86 |
#define _mat_uint8_t uint8_t |
| 87 |
#else |
| 88 |
|
| 89 |
#define _mat_int16_t short |
| 90 |
|
| 91 |
|
| 92 |
#define _mat_int32_t int |
| 93 |
|
| 94 |
|
| 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 |
|
| 102 |
#define _mat_int8_t signed char |
| 103 |
|
| 104 |
|
| 105 |
#define _mat_uint16_t unsigned short |
| 106 |
|
| 107 |
|
| 108 |
#define _mat_uint32_t unsigned |
| 109 |
|
| 110 |
|
| 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 |
|
| 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 |
|
| 159 |
|
| 160 |
|
| 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 |
|
| 175 |
|
| 176 |
|
| 177 |
|
| 178 |
#define MATIO_FORMATATTR_PRINTF1 |
| 179 |
#define MATIO_FORMATATTR_PRINTF2 |
| 180 |
#define MATIO_FORMATATTR_VPRINTF |
| 181 |
|
| 182 |
|
| 183 |
|
| 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 |