Fossil SCM

Change the typedef of u32 in search.c so that it works in older PPC macs.

drh 2023-02-20 14:58 trunk
Commit f82caec579e3313e35122a866069a72e34d5ebf1392512f366491bf35a2ba5fc
1 file changed +2
--- src/search.c
+++ src/search.c
@@ -2145,12 +2145,14 @@
21452145
** https://sqlite.org/src/finfo?name=ext/fts5/fts5_test_mi.c
21462146
*/
21472147
21482148
typedef struct Fts5MatchinfoCtx Fts5MatchinfoCtx;
21492149
2150
+#if INTERFACE
21502151
#ifndef SQLITE_AMALGAMATION
21512152
typedef unsigned int u32;
2153
+#endif
21522154
#endif
21532155
21542156
struct Fts5MatchinfoCtx {
21552157
int nCol; /* Number of cols in FTS5 table */
21562158
int nPhrase; /* Number of phrases in FTS5 query */
21572159
--- src/search.c
+++ src/search.c
@@ -2145,12 +2145,14 @@
2145 ** https://sqlite.org/src/finfo?name=ext/fts5/fts5_test_mi.c
2146 */
2147
2148 typedef struct Fts5MatchinfoCtx Fts5MatchinfoCtx;
2149
 
2150 #ifndef SQLITE_AMALGAMATION
2151 typedef unsigned int u32;
 
2152 #endif
2153
2154 struct Fts5MatchinfoCtx {
2155 int nCol; /* Number of cols in FTS5 table */
2156 int nPhrase; /* Number of phrases in FTS5 query */
2157
--- src/search.c
+++ src/search.c
@@ -2145,12 +2145,14 @@
2145 ** https://sqlite.org/src/finfo?name=ext/fts5/fts5_test_mi.c
2146 */
2147
2148 typedef struct Fts5MatchinfoCtx Fts5MatchinfoCtx;
2149
2150 #if INTERFACE
2151 #ifndef SQLITE_AMALGAMATION
2152 typedef unsigned int u32;
2153 #endif
2154 #endif
2155
2156 struct Fts5MatchinfoCtx {
2157 int nCol; /* Number of cols in FTS5 table */
2158 int nPhrase; /* Number of phrases in FTS5 query */
2159

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button