X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_std_defs.h;h=d41ba00d1aa39161296166fbf98fe893cb5ba093;hp=86f2ec0684e8842f85d29cb742764bb4b128f771;hb=8e61e5e6b8d15afb9e11a2ae9f79db3a930046ea;hpb=6be458f3eca1edd091956d41bc3e5014ebb6c437 diff --git a/php_http_std_defs.h b/php_http_std_defs.h index 86f2ec0..d41ba00 100644 --- a/php_http_std_defs.h +++ b/php_http_std_defs.h @@ -287,6 +287,24 @@ typedef int STATUS; #endif /* HTTP_HAVE_CURL */ +#ifndef TSRMLS_FETCH_FROM_CTX +# ifdef ZTS +# define TSRMLS_FETCH_FROM_CTX(ctx) void ***tsrm_ls = (void ***) ctx +# else +# define TSRMLS_FETCH_FROM_CTX(ctx) +# endif +#endif + +#ifndef TSRMLS_SET_CTX +# ifdef ZTS +# define TSRMLS_SET_CTX(ctx) (void ***) ctx = tsrm_ls +# else +# define TSRMLS_SET_CTX(ctx) +# endif +#endif + + + #endif /* PHP_HTTP_STD_DEFS_H */ /*