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=48981407809f0404e0427637f8474c9ccc2eafa4;hpb=92d91587592727bbf0369e6eae8eba157063274d 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 */ /*