From: foobar Date: Fri, 5 Aug 2005 22:28:23 +0000 (+0000) Subject: Fix compile failure with GCC 4.0.x X-Git-Tag: RELEASE_2_0_0~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=894237d53127c6907e971826befc027aae33cbb9;p=php Fix compile failure with GCC 4.0.x --- diff --git a/TSRM/TSRM.h b/TSRM/TSRM.h index cbc9cf81c7..b2868730e5 100644 --- a/TSRM/TSRM.h +++ b/TSRM/TSRM.h @@ -143,7 +143,7 @@ TSRM_API void tsrm_free_interpreter_context(void *context); #define TSRMLS_FETCH() void ***tsrm_ls = (void ***) ts_resource_ex(0, NULL) #define TSRMLS_FETCH_FROM_CTX(ctx) void ***tsrm_ls = (void ***) ctx -#define TSRMLS_SET_CTX(ctx) (void ***) ctx = tsrm_ls +#define TSRMLS_SET_CTX(ctx) ctx = (void ***) tsrm_ls #define TSRMG(id, type, element) (((type) (*((void ***) tsrm_ls))[TSRM_UNSHUFFLE_RSRC_ID(id)])->element) #define TSRMLS_D void ***tsrm_ls #define TSRMLS_DC , TSRMLS_D