We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5215f07 commit 412b476Copy full SHA for 412b476
ext/mysqlnd/mysqlnd_portability.h
@@ -15,7 +15,7 @@ This file is public domain and comes with NO WARRANTY of any kind */
15
16
17
/* Comes from global.h as OFFSET, renamed to STRUCT_OFFSET */
18
-#define STRUCT_OFFSET(t, f) ((size_t)(char *)&((t *)0)->f)
+#define STRUCT_OFFSET(t, f) XtOffsetOf(t, f)
19
20
#ifndef __attribute
21
#if !defined(__GNUC__)
0 commit comments