aboutsummaryrefslogtreecommitdiff
path: root/ext/fts3/fts3Int.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fts3/fts3Int.h')
-rw-r--r--ext/fts3/fts3Int.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fts3/fts3Int.h b/ext/fts3/fts3Int.h
index d438549de..bd4666253 100644
--- a/ext/fts3/fts3Int.h
+++ b/ext/fts3/fts3Int.h
@@ -213,7 +213,7 @@ typedef sqlite3_int64 i64; /* 8-byte signed integer */
** Macros needed to provide flexible arrays in a portable way
*/
#ifndef offsetof
-# define offsetof(STRUCTURE,FIELD) ((size_t)((char*)&((STRUCTURE*)0)->FIELD))
+# define offsetof(ST,M) ((size_t)((char*)&((ST*)0)->M - (char*)0))
#endif
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
# define FLEXARRAY