-
Notifications
You must be signed in to change notification settings - Fork 44
/
config.h.in
106 lines (95 loc) · 2.4 KB
/
config.h.in
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#ifndef THTK_CONFIG_H_
#define THTK_CONFIG_H_
/* Flex uses stdint.h if the compiler reports itself as C99. MSVC doesn't. */
#if !defined(__STDC_VERSION__) && defined(_MSC_VER)
# if _MSC_VER >= 1900
# define __STDC_VERSION__ 199901L
# endif
#endif
#ifdef _MSC_VER
# define PRAGMA(x) __pragma(x)
#else
# define PRAGMA(x) _Pragma(#x)
#endif
#cmakedefine HAVE_PACKING_PRAGMA_PUSH
#ifdef HAVE_PACKING_PRAGMA_PUSH
# define PACK_BEGIN PRAGMA(pack(push,1))
# define PACK_END PRAGMA(pack(pop))
#else
# define PACK_BEGIN
# define PACK_END
#endif
#cmakedefine HAVE_PACKING_GNUC_ATTRIBUTE
#ifdef HAVE_PACKING_GNUC_ATTRIBUTE
#define PACK_ATTRIBUTE __attribute__((__packed__))
#else
#define PACK_ATTRIBUTE
#endif
#cmakedefine PNG_FOUND
#ifdef PNG_FOUND
# define HAVE_LIBPNG
#endif
#cmakedefine HAVE_SYS_TYPES_H
#cmakedefine HAVE_OFF_T
#cmakedefine HAVE_SSIZE_T
#cmakedefine HAVE_SSIZE_T_BASETSD
#if !defined(HAVE_SSIZE_T) && defined(HAVE_SSIZE_T_BASETSD)
# include <basetsd.h>
typedef SSIZE_T ssize_t;
#endif
#cmakedefine HAVE_UNISTD_H
#ifndef HAVE_UNISTD_H
# define YY_NO_UNISTD_H
#endif
#cmakedefine HAVE_MMAP
#cmakedefine HAVE_FSTAT
#cmakedefine HAVE_SCANDIR
#cmakedefine HAVE_FILENO
#cmakedefine HAVE_CHDIR
#cmakedefine HAVE__CHDIR
#cmakedefine HAVE_PREAD
#cmakedefine HAVE_GETC_UNLOCKED
#cmakedefine HAVE_FREAD_UNLOCKED
#cmakedefine HAVE_FEOF_UNLOCKED
#cmakedefine HAVE__GETC_NOLOCK
#cmakedefine HAVE__FREAD_NOLOCK
#ifndef HAVE_GETC_UNLOCKED
# ifdef HAVE__GETC_NOLOCK
# define getc_unlocked _getc_nolock
# define putc_unlocked _putc_nolock
# else
# define getc_unlocked getc
# define putc_unlocked putc
# endif
#endif
#ifndef HAVE_FREAD_UNLOCKED
# ifdef HAVE__FREAD_NOLOCK
# define fread_unlocked _fread_nolock
# define fwrite_unlocked _fwrite_nolock
# else
# define fread_unlocked fread
# define fwrite_unlocked fwrite
# endif
#endif
/* feof and fileno don't lock in VCRT, and thus they don't have _nolock versions. */
#ifndef HAVE_FEOF_UNLOCKED
# define feof_unlocked feof
# if defined(HAVE_FILENO)
# define fileno_unlocked fileno
# endif
#endif
/* Our code shouldn't need to check these */
#undef HAVE_GETC_UNLOCKED
#undef HAVE_FREAD_UNLOCKED
#undef HAVE_FEOF_UNLOCKED
#undef HAVE__GETC_NOLOCK
#undef HAVE__FREAD_NOLOCK
#ifdef _WIN32
# include <io.h>
# include <fcntl.h>
#endif
#include <thtk_export.h>
#define PACKAGE_NAME "@PROJECT_NAME@"
#define PACKAGE_VERSION "@PROJECT_VERSION@"
#define PACKAGE_BUGREPORT "@PROJECT_BUGREPORT@"
#endif