@@ -1183,7 +1183,7 @@ php_stream_wrapper php_stream_brotli_wrapper = {
11831183static php_brotli_context * php_brotli_context_from_obj (zend_object * obj )
11841184{
11851185 return (php_brotli_context * )
1186- ((char * )(obj ) - XtOffsetOf (php_brotli_context , std ));
1186+ ((char * )(obj ) - offsetof (php_brotli_context , std ));
11871187}
11881188
11891189static void php_brotli_context_free_obj (zend_object * object )
@@ -1364,7 +1364,7 @@ ZEND_MINIT_FUNCTION(brotli)
13641364 memcpy (& php_brotli_compress_context_object_handlers ,
13651365 & std_object_handlers , sizeof (zend_object_handlers ));
13661366 php_brotli_compress_context_object_handlers .offset
1367- = XtOffsetOf (php_brotli_context , std );
1367+ = offsetof (php_brotli_context , std );
13681368 php_brotli_compress_context_object_handlers .free_obj
13691369 = php_brotli_context_free_obj ;
13701370 php_brotli_compress_context_object_handlers .get_constructor
@@ -1392,7 +1392,7 @@ ZEND_MINIT_FUNCTION(brotli)
13921392 memcpy (& php_brotli_uncompress_context_object_handlers ,
13931393 & std_object_handlers , sizeof (zend_object_handlers ));
13941394 php_brotli_uncompress_context_object_handlers .offset
1395- = XtOffsetOf (php_brotli_context , std );
1395+ = offsetof (php_brotli_context , std );
13961396 php_brotli_uncompress_context_object_handlers .free_obj
13971397 = php_brotli_context_free_obj ;
13981398 php_brotli_uncompress_context_object_handlers .get_constructor
0 commit comments