| 1 |
/*-*- mode:C; -*- */ |
| 2 |
/* config.h. Generated from build/cmake/config.h.in by cmake configure */ |
| 3 |
/* |
| 4 |
* Check: a unit test framework for C |
| 5 |
* |
| 6 |
* Copyright (C) 2011 Mateusz Loskot |
| 7 |
* Copyright (C) 2001, 2002 Arien Malec |
| 8 |
* |
| 9 |
* This library is free software; you can redistribute it and/or |
| 10 |
* modify it under the terms of the GNU Lesser General Public |
| 11 |
* License as published by the Free Software Foundation; either |
| 12 |
* version 2.1 of the License, or (at your option) any later version. |
| 13 |
* |
| 14 |
* This library is distributed in the hope that it will be useful, |
| 15 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 |
* Lesser General Public License for more details. |
| 18 |
* |
| 19 |
* You should have received a copy of the GNU Lesser General Public |
| 20 |
* License along with this library; if not, write to the |
| 21 |
* Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
| 22 |
* Boston, MA 02111-1307, USA. |
| 23 |
*/ |
| 24 |
|
| 25 |
#if defined(__osf__) |
| 26 |
# define _OSF_SOURCE |
| 27 |
#endif |
| 28 |
|
| 29 |
/* |
| 30 |
* Ensure we have C99-style int64_t, etc, all defined. |
| 31 |
*/ |
| 32 |
|
| 33 |
/* First, we need to know if the system has already defined them. */ |
| 34 |
#cmakedefine HAVE_INT16_T |
| 35 |
#cmakedefine HAVE_INT32_T |
| 36 |
#cmakedefine HAVE_INT64_T |
| 37 |
#cmakedefine HAVE_INTMAX_T |
| 38 |
|
| 39 |
#cmakedefine HAVE_UINT8_T |
| 40 |
#cmakedefine HAVE_UINT16_T |
| 41 |
#cmakedefine HAVE_UINT32_T |
| 42 |
#cmakedefine HAVE_UINT64_T |
| 43 |
#cmakedefine HAVE_UINTMAX_T |
| 44 |
|
| 45 |
/* We might have the types we want under other spellings. */ |
| 46 |
#cmakedefine HAVE___INT64 |
| 47 |
#cmakedefine HAVE_U_INT64_T |
| 48 |
#cmakedefine HAVE_UNSIGNED___INT64 |
| 49 |
|
| 50 |
/* The sizes of various standard integer types. */ |
| 51 |
@SIZE_OF_SHORT_CODE@ |
| 52 |
@SIZE_OF_INT_CODE@ |
| 53 |
@SIZE_OF_LONG_CODE@ |
| 54 |
@SIZE_OF_LONG_LONG_CODE@ |
| 55 |
@SIZE_OF_UNSIGNED_SHORT_CODE@ |
| 56 |
@SIZE_OF_UNSIGNED_CODE@ |
| 57 |
@SIZE_OF_UNSIGNED_LONG_CODE@ |
| 58 |
@SIZE_OF_UNSIGNED_LONG_LONG_CODE@ |
| 59 |
|
| 60 |
/* |
| 61 |
* If we lack int64_t, define it to the first of __int64, int, long, and long long |
| 62 |
* that exists and is the right size. |
| 63 |
*/ |
| 64 |
#if !defined(HAVE_INT64_T) && defined(HAVE___INT64) |
| 65 |
typedef __int64 int64_t; |
| 66 |
#define HAVE_INT64_T |
| 67 |
#endif |
| 68 |
|
| 69 |
#if !defined(HAVE_INT64_T) && SIZE_OF_INT == 8 |
| 70 |
typedef int int64_t; |
| 71 |
#define HAVE_INT64_T |
| 72 |
#endif |
| 73 |
|
| 74 |
#if !defined(HAVE_INT64_T) && SIZE_OF_LONG == 8 |
| 75 |
typedef long int64_t; |
| 76 |
#define HAVE_INT64_T |
| 77 |
#endif |
| 78 |
|
| 79 |
#if !defined(HAVE_INT64_T) && SIZE_OF_LONG_LONG == 8 |
| 80 |
typedef long long int64_t; |
| 81 |
#define HAVE_INT64_T |
| 82 |
#endif |
| 83 |
|
| 84 |
#if !defined(HAVE_INT64_T) |
| 85 |
#error No 64-bit integer type was found. |
| 86 |
#endif |
| 87 |
|
| 88 |
/* |
| 89 |
* Similarly for int32_t |
| 90 |
*/ |
| 91 |
#if !defined(HAVE_INT32_T) && SIZE_OF_INT == 4 |
| 92 |
typedef long int32_t; |
| 93 |
#define HAVE_INT32_T |
| 94 |
#endif |
| 95 |
|
| 96 |
#if !defined(HAVE_INT32_T) && SIZE_OF_LONG == 4 |
| 97 |
typedef long int32_t; |
| 98 |
#define HAVE_INT32_T |
| 99 |
#endif |
| 100 |
|
| 101 |
#if !defined(HAVE_INT32_T) |
| 102 |
#error No 32-bit integer type was found. |
| 103 |
#endif |
| 104 |
|
| 105 |
/* |
| 106 |
* Similarly for int16_t |
| 107 |
*/ |
| 108 |
#if !defined(HAVE_INT16_T) && SIZE_OF_INT == 2 |
| 109 |
typedef int int16_t; |
| 110 |
#define HAVE_INT16_T |
| 111 |
#endif |
| 112 |
|
| 113 |
#if !defined(HAVE_INT16_T) && SIZE_OF_SHORT == 2 |
| 114 |
typedef short int16_t; |
| 115 |
#define HAVE_INT16_T |
| 116 |
#endif |
| 117 |
|
| 118 |
#if !defined(HAVE_INT16_T) |
| 119 |
#error No 16-bit integer type was found. |
| 120 |
#endif |
| 121 |
|
| 122 |
/* |
| 123 |
* Similarly for uint64_t |
| 124 |
*/ |
| 125 |
#if !defined(HAVE_UINT64_T) && defined(HAVE_UNSIGNED___INT64) |
| 126 |
typedef unsigned __int64 uint64_t; |
| 127 |
#define HAVE_UINT64_T |
| 128 |
#endif |
| 129 |
|
| 130 |
#if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED == 8 |
| 131 |
typedef unsigned uint64_t; |
| 132 |
#define HAVE_UINT64_T |
| 133 |
#endif |
| 134 |
|
| 135 |
#if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG == 8 |
| 136 |
typedef unsigned long uint64_t; |
| 137 |
#define HAVE_UINT64_T |
| 138 |
#endif |
| 139 |
|
| 140 |
#if !defined(HAVE_UINT64_T) && SIZE_OF_UNSIGNED_LONG_LONG == 8 |
| 141 |
typedef unsigned long long uint64_t; |
| 142 |
#define HAVE_UINT64_T |
| 143 |
#endif |
| 144 |
|
| 145 |
#if !defined(HAVE_UINT64_T) |
| 146 |
#error No 64-bit unsigned integer type was found. |
| 147 |
#endif |
| 148 |
|
| 149 |
|
| 150 |
/* |
| 151 |
* Similarly for uint32_t |
| 152 |
*/ |
| 153 |
#if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED == 4 |
| 154 |
typedef unsigned uint32_t; |
| 155 |
#define HAVE_UINT32_T |
| 156 |
#endif |
| 157 |
|
| 158 |
#if !defined(HAVE_UINT32_T) && SIZE_OF_UNSIGNED_LONG == 4 |
| 159 |
typedef unsigned long uint32_t; |
| 160 |
#define HAVE_UINT32_T |
| 161 |
#endif |
| 162 |
|
| 163 |
#if !defined(HAVE_UINT32_T) |
| 164 |
#error No 32-bit unsigned integer type was found. |
| 165 |
#endif |
| 166 |
|
| 167 |
/* |
| 168 |
* Similarly for uint16_t |
| 169 |
*/ |
| 170 |
#if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED == 2 |
| 171 |
typedef unsigned uint16_t; |
| 172 |
#define HAVE_UINT16_T |
| 173 |
#endif |
| 174 |
|
| 175 |
#if !defined(HAVE_UINT16_T) && SIZE_OF_UNSIGNED_SHORT == 2 |
| 176 |
typedef unsigned short uint16_t; |
| 177 |
#define HAVE_UINT16_T |
| 178 |
#endif |
| 179 |
|
| 180 |
#if !defined(HAVE_UINT16_T) |
| 181 |
#error No 16-bit unsigned integer type was found. |
| 182 |
#endif |
| 183 |
|
| 184 |
/* |
| 185 |
* Similarly for uint8_t |
| 186 |
*/ |
| 187 |
#if !defined(HAVE_UINT8_T) |
| 188 |
typedef unsigned char uint8_t; |
| 189 |
#define HAVE_UINT8_T |
| 190 |
#endif |
| 191 |
|
| 192 |
#if !defined(HAVE_UINT16_T) |
| 193 |
#error No 8-bit unsigned integer type was found. |
| 194 |
#endif |
| 195 |
|
| 196 |
/* Define intmax_t and uintmax_t if they are not already defined. */ |
| 197 |
#if !defined(HAVE_INTMAX_T) |
| 198 |
typedef int64_t intmax_t; |
| 199 |
#define INTMAX_MIN INT64_MIN |
| 200 |
#define INTMAX_MAX INT64_MAX |
| 201 |
#endif |
| 202 |
|
| 203 |
#if !defined(HAVE_UINTMAX_T) |
| 204 |
typedef uint64_t uintmax_t; |
| 205 |
#endif |
| 206 |
|
| 207 |
/* Define to 1 if you have the declaration of `INT64_MAX', and to 0 if you |
| 208 |
don't. */ |
| 209 |
#cmakedefine HAVE_DECL_INT64_MAX 1 |
| 210 |
|
| 211 |
/* Define to 1 if you have the declaration of `INT64_MIN', and to 0 if you |
| 212 |
don't. */ |
| 213 |
#cmakedefine HAVE_DECL_INT64_MIN 1 |
| 214 |
|
| 215 |
/* Define to 1 if you have the declaration of `SIZE_MAX', and to 0 if you |
| 216 |
don't. */ |
| 217 |
#cmakedefine HAVE_DECL_SIZE_MAX 1 |
| 218 |
|
| 219 |
/* Define to 1 if you have the declaration of `SSIZE_MAX', and to 0 if you |
| 220 |
don't. */ |
| 221 |
#cmakedefine HAVE_DECL_SSIZE_MAX 1 |
| 222 |
|
| 223 |
/* Define to 1 if you have the declaration of `UINT32_MAX', and to 0 if you |
| 224 |
don't. */ |
| 225 |
#cmakedefine HAVE_DECL_UINT32_MAX 1 |
| 226 |
|
| 227 |
/* Define to 1 if you have the declaration of `UINT64_MAX', and to 0 if you |
| 228 |
don't. */ |
| 229 |
#cmakedefine HAVE_DECL_UINT64_MAX 1 |
| 230 |
|
| 231 |
/* Define to 1 if you have the <errno.h> header file. */ |
| 232 |
#cmakedefine HAVE_ERRNO_H 1 |
| 233 |
|
| 234 |
/* Define to 1 if you have the `fork' function. */ |
| 235 |
#cmakedefine HAVE_FORK 1 |
| 236 |
|
| 237 |
/* Define to 1 if you have the `getpid' function. */ |
| 238 |
#cmakedefine HAVE_GETPID 1 |
| 239 |
|
| 240 |
/* Define to 1 if you have the `gettimeofday' function. */ |
| 241 |
#cmakedefine HAVE_GETTIMEOFDAY 1 |
| 242 |
|
| 243 |
/* Define to 1 if you have the <inttypes.h> header file. */ |
| 244 |
#cmakedefine HAVE_INTTYPES_H 1 |
| 245 |
|
| 246 |
/* Define to 1 if you have the <limits.h> header file. */ |
| 247 |
#cmakedefine HAVE_LIMITS_H 1 |
| 248 |
|
| 249 |
/* Define to 1 if you have the `localtime_r' function. */ |
| 250 |
#cmakedefine HAVE_DECL_LOCALTIME_R 1 |
| 251 |
|
| 252 |
/* Define to 1 if you have the `localtime_s' function. */ |
| 253 |
#cmakedefine HAVE_LOCALTIME_S 1 |
| 254 |
|
| 255 |
/* Define to 1 if the system has the type `long long int'. */ |
| 256 |
#cmakedefine HAVE_LONG_LONG_INT 1 |
| 257 |
|
| 258 |
/* Define to 1 if you have the `malloc' function. */ |
| 259 |
#cmakedefine HAVE_MALLOC 1 |
| 260 |
|
| 261 |
/* Define to 1 if you have the `realloc' function. */ |
| 262 |
#cmakedefine HAVE_REALLOC 1 |
| 263 |
|
| 264 |
/* Define to 1 if you have the `setenv' function. */ |
| 265 |
#cmakedefine HAVE_DECL_SETENV 1 |
| 266 |
|
| 267 |
/* Define to 1 if you have the <signal.h> header file. */ |
| 268 |
#cmakedefine HAVE_SIGNAL_H 1 |
| 269 |
|
| 270 |
/* Define to 1 if you have the 'sigaction' function. */ |
| 271 |
#cmakedefine HAVE_SIGACTION 1 |
| 272 |
|
| 273 |
/* Define to 1 if you have the <stdarg.h> header file. */ |
| 274 |
#cmakedefine HAVE_STDARG_H 1 |
| 275 |
|
| 276 |
/* Define to 1 if you have the <stdint.h> header file. */ |
| 277 |
#cmakedefine HAVE_STDINT_H 1 |
| 278 |
|
| 279 |
/* Define to 1 if you have the <stdlib.h> header file. */ |
| 280 |
#cmakedefine HAVE_STDLIB_H 1 |
| 281 |
|
| 282 |
/* Define to 1 if you have the `strdup' function. */ |
| 283 |
#cmakedefine HAVE_DECL_STRDUP 1 |
| 284 |
|
| 285 |
/* Define to 1 if you have the <strings.h> header file. */ |
| 286 |
#cmakedefine HAVE_STRINGS_H 1 |
| 287 |
|
| 288 |
/* Define to 1 if you have the <string.h> header file. */ |
| 289 |
#cmakedefine HAVE_STRING_H 1 |
| 290 |
|
| 291 |
/* Define to 1 if you have the `strsignal' function. */ |
| 292 |
#cmakedefine HAVE_DECL_STRSIGNAL 1 |
| 293 |
|
| 294 |
/* Define to 1 if you have the <sys/time.h> header file. */ |
| 295 |
#cmakedefine HAVE_SYS_TIME_H 1 |
| 296 |
|
| 297 |
/* Define to 1 if you have the <sys/types.h> header file. */ |
| 298 |
#cmakedefine HAVE_SYS_TYPES_H 1 |
| 299 |
|
| 300 |
/* Define to 1 if you have the <time.h> header file. */ |
| 301 |
#cmakedefine HAVE_TIME_H 1 |
| 302 |
|
| 303 |
/* Define to 1 if you have the <unistd.h> header file. */ |
| 304 |
#cmakedefine HAVE_UNISTD_H 1 |
| 305 |
|
| 306 |
/* Define to 1 if you have <windows.h> header file. */ |
| 307 |
#cmakedefine HAVE_WINDOWS_H 1 |
| 308 |
|
| 309 |
/* Define to 1 if you have <synchapi.h> header file. */ |
| 310 |
#cmakedefine HAVE_SYNCHAPI_H 1 |
| 311 |
|
| 312 |
/* Define to 1 if you have the 'InitOnceBeginInitialize' function. */ |
| 313 |
#cmakedefine HAVE_INIT_ONCE_BEGIN_INITIALIZE 1 |
| 314 |
|
| 315 |
/* Define to 1 if you have the 'InitOnceComplete' function. */ |
| 316 |
#cmakedefine HAVE_INIT_ONCE_COMPLETE 1 |
| 317 |
|
| 318 |
/* Define to 1 if the system has the type `unsigned long long'. */ |
| 319 |
#cmakedefine HAVE_UNSIGNED_LONG_LONG 1 |
| 320 |
|
| 321 |
/* Define to 1 if the system has the type `unsigned long long int'. */ |
| 322 |
#cmakedefine HAVE_UNSIGNED_LONG_LONG_INT 1 |
| 323 |
|
| 324 |
/* Define to 1 if the system has the type `wchar_t'. */ |
| 325 |
#cmakedefine HAVE_WCHAR_T 1 |
| 326 |
|
| 327 |
/* Define to 1 if you have the `_getpid' function. */ |
| 328 |
#cmakedefine HAVE__GETPID 1 |
| 329 |
|
| 330 |
/* Define to 1 if you have the `_localtime64_s' function. */ |
| 331 |
#cmakedefine HAVE__LOCALTIME64_S 1 |
| 332 |
|
| 333 |
/* Define to 1 if you have the `_strdup' function. */ |
| 334 |
#cmakedefine HAVE__STRDUP 1 |
| 335 |
|
| 336 |
/* Define 1 if you have pthread support. */ |
| 337 |
#cmakedefine HAVE_PTHREAD 1 |
| 338 |
|
| 339 |
/* Version number of Check */ |
| 340 |
#cmakedefine CHECK_VERSION "${CHECK_MAJOR_VERSION}.${CHECK_MINOR_VERSION}.${CHECK_MICRO_VERSION}" |
| 341 |
|
| 342 |
/* The size of `wchar_t', as computed by sizeof. */ |
| 343 |
#cmakedefine SIZEOF_WCHAR_T ${SIZEOF_WCHAR_T} |
| 344 |
|
| 345 |
/* Define to 1 if strerror_r returns char *. */ |
| 346 |
#cmakedefine STRERROR_R_CHAR_P 1 |
| 347 |
|
| 348 |
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ |
| 349 |
#cmakedefine TIME_WITH_SYS_TIME 1 |
| 350 |
|
| 351 |
/* |
| 352 |
* Some platform requires a macro to use extension functions. |
| 353 |
*/ |
| 354 |
#cmakedefine SAFE_TO_DEFINE_EXTENSIONS 1 |
| 355 |
#ifdef SAFE_TO_DEFINE_EXTENSIONS |
| 356 |
/* Enable extensions on AIX 3, Interix. */ |
| 357 |
#ifndef _ALL_SOURCE |
| 358 |
# define _ALL_SOURCE 1 |
| 359 |
#endif |
| 360 |
/* Enable GNU extensions on systems that have them. */ |
| 361 |
#ifndef _GNU_SOURCE |
| 362 |
# define _GNU_SOURCE 1 |
| 363 |
#endif |
| 364 |
/* Enable threading extensions on Solaris. */ |
| 365 |
#ifndef _POSIX_PTHREAD_SEMANTICS |
| 366 |
# define _POSIX_PTHREAD_SEMANTICS 1 |
| 367 |
#endif |
| 368 |
/* Enable extensions on HP NonStop. */ |
| 369 |
#ifndef _TANDEM_SOURCE |
| 370 |
# define _TANDEM_SOURCE 1 |
| 371 |
#endif |
| 372 |
/* Enable general extensions on Solaris. */ |
| 373 |
#ifndef __EXTENSIONS__ |
| 374 |
# define __EXTENSIONS__ 1 |
| 375 |
#endif |
| 376 |
#endif /* SAFE_TO_DEFINE_EXTENSIONS */ |
| 377 |
|
| 378 |
/* Number of bits in a file offset, on hosts where this is settable. */ |
| 379 |
#cmakedefine _FILE_OFFSET_BITS ${_FILE_OFFSET_BITS} |
| 380 |
|
| 381 |
/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ |
| 382 |
#cmakedefine _LARGEFILE_SOURCE 1 |
| 383 |
|
| 384 |
/* Define for large files, on AIX-style hosts. */ |
| 385 |
#cmakedefine _LARGE_FILES ${_LARGE_FILES} |
| 386 |
|
| 387 |
/* Define for Windows to use Windows 2000+ APIs. */ |
| 388 |
#cmakedefine _WIN32_WINNT ${_WIN32_WINNT} |
| 389 |
#cmakedefine WINVER ${WINVER} |
| 390 |
|
| 391 |
/* Define to empty if `const' does not conform to ANSI C. */ |
| 392 |
#cmakedefine const ${const} |
| 393 |
|
| 394 |
/* Define to `int' if <sys/types.h> doesn't define. */ |
| 395 |
#cmakedefine clockid_t ${clockid_t} |
| 396 |
|
| 397 |
/* Define to `int' if <sys/types.h> doesn't define. */ |
| 398 |
#cmakedefine gid_t ${gid_t} |
| 399 |
|
| 400 |
/* Define to `unsigned long' if <sys/types.h> does not define. */ |
| 401 |
#cmakedefine id_t ${id_t} |
| 402 |
|
| 403 |
/* Define to `int' if <sys/types.h> does not define. */ |
| 404 |
#cmakedefine mode_t ${mode_t} |
| 405 |
|
| 406 |
/* Define to `long long' if <sys/types.h> does not define. */ |
| 407 |
#cmakedefine off_t ${off_t} |
| 408 |
|
| 409 |
/* Define to `int' if <sys/types.h> doesn't define. */ |
| 410 |
#cmakedefine pid_t ${pid_t} |
| 411 |
|
| 412 |
/* Define to `unsigned int' if <sys/types.h> does not define. */ |
| 413 |
#cmakedefine size_t ${size_t} |
| 414 |
|
| 415 |
/* Define to `int' if <sys/types.h> does not define. */ |
| 416 |
#cmakedefine ssize_t ${ssize_t} |
| 417 |
|
| 418 |
/* Define to `int' if <sys/types.h> does not define. */ |
| 419 |
#cmakedefine timer_t ${timer_t} |
| 420 |
|
| 421 |
/* Define to `int' if <sys/types.h> doesn't define. */ |
| 422 |
#cmakedefine uid_t ${uid_t} |
| 423 |
|
| 424 |
/* Define to `int' if <sys/types.h> does not define. */ |
| 425 |
#cmakedefine intptr_t ${intptr_t} |
| 426 |
|
| 427 |
/* Define to `unsigned int' if <sys/types.h> does not define. */ |
| 428 |
#cmakedefine uintptr_t ${uintptr_t} |