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
107
108
109
110
111
112
113
114
115
116
117
|
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
|
+
+
+
-
+
+
+
+
+
-
+
+
+
+
+
-
+
+
+
-
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
-
+
+
+
+
|
#endif
/*
** Define the compiler variant, used to compile the project
*/
#if !defined(COMPILER_NAME)
# if defined(__DMC__)
# if defined(COMPILER_VERSION) && !defined(NO_COMPILER_VERSION)
# define COMPILER_NAME "dmc-" COMPILER_VERSION
# else
# define COMPILER_NAME "dmc"
# define COMPILER_NAME "dmc"
# endif
# elif defined(__POCC__)
# if defined(_M_X64)
# if defined(COMPILER_VERSION) && !defined(NO_COMPILER_VERSION)
# define COMPILER_NAME "pellesc64-" COMPILER_VERSION
# else
# define COMPILER_NAME "pellesc64"
# define COMPILER_NAME "pellesc64"
# endif
# else
# if defined(COMPILER_VERSION) && !defined(NO_COMPILER_VERSION)
# define COMPILER_NAME "pellesc32-" COMPILER_VERSION
# else
# define COMPILER_NAME "pellesc32"
# define COMPILER_NAME "pellesc32"
# endif
# endif
# elif defined(_MSC_VER)
# if !defined(COMPILER_VERSION)
# define COMPILER_VERSION COMPILER_STRINGIFY(_MSC_VER)
# endif
# if defined(COMPILER_VERSION) && !defined(NO_COMPILER_VERSION)
# define COMPILER_NAME "msc-" COMPILER_VERSION
# define COMPILER_NAME "msc-" COMPILER_VERSION
# else
# define COMPILER_NAME "msc"
# endif
# elif defined(__MINGW32__)
# if defined(__GNUC__) && defined(__VERSION__)
# if !defined(COMPILER_VERSION)
# define COMPILER_VERSION COMPILER_STRINGIFY(__MINGW32_VERSION) "-gcc-" __VERSION__
# endif
# define COMPILER_NAME "mingw32-" COMPILER_VERSION
# else
# if !defined(COMPILER_VERSION)
# define COMPILER_VERSION COMPILER_STRINGIFY(__MINGW32_VERSION)
# if !defined(COMPILER_VERSION)
# if defined(__MINGW32_VERSION)
# if defined(__GNUC__)
# if defined(__VERSION__)
# define COMPILER_VERSION COMPILER_STRINGIFY(__MINGW32_VERSION) "-gcc-" __VERSION__
# else
# define COMPILER_VERSION COMPILER_STRINGIFY(__MINGW32_VERSION) "-gcc"
# endif
# else
# define COMPILER_VERSION COMPILER_STRINGIFY(__MINGW32_VERSION)
# endif
# endif
# endif
# if defined(COMPILER_VERSION) && !defined(NO_COMPILER_VERSION)
# define COMPILER_NAME "mingw32-" COMPILER_VERSION
# else
# define COMPILER_NAME "mingw32"
# endif
# elif defined(_WIN32)
# define COMPILER_NAME "win32"
# elif defined(__GNUC__)
# if !defined(COMPILER_VERSION)
# if defined(__VERSION__)
# define COMPILER_VERSION __VERSION__
# define COMPILER_VERSION __VERSION__
# endif
# endif
# if defined(COMPILER_VERSION) && !defined(NO_COMPILER_VERSION)
# define COMPILER_NAME "gcc-" COMPILER_VERSION
# define COMPILER_NAME "gcc-" COMPILER_VERSION
# else
# define COMPILER_NAME "gcc"
# endif
# else
# define COMPILER_NAME "unknown"
# endif
#endif
#if !defined(_RC_COMPILE_) && !defined(SQLITE_AMALGAMATION)
|
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
|
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
|
-
+
|
/*
** The following macros are used to cast pointers to integers and
** integers to pointers. The way you do this varies from one compiler
** to the next, so we have developed the following set of #if statements
** to generate appropriate macros for a wide range of compilers.
**
** The correct "ANSI" way to do this is to use the intptr_t type.
** The correct "ANSI" way to do this is to use the intptr_t type.
** Unfortunately, that typedef is not available on all compilers, or
** if it is available, it requires an #include of specific headers
** that vary from one machine to the next.
*/
#if defined(__PTRDIFF_TYPE__) /* This case should work for GCC */
# define FOSSIL_INT_TO_PTR(X) ((void*)(__PTRDIFF_TYPE__)(X))
# define FOSSIL_PTR_TO_INT(X) ((int)(__PTRDIFF_TYPE__)(X))
|