X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=php_apfd.c;h=48e767f62eecac61caa7c86c9895ecffaf05e1ef;hb=594bcb5605cf0d8cdad8dd0d607f2b7ae61b140c;hp=da178eb7b3ab65bd0a9f77e1e9136666bd97f730;hpb=39d9936c61018c60d831d52896a7ee738952180e;p=m6w6%2Fext-apfd diff --git a/php_apfd.c b/php_apfd.c index da178eb..48e767f 100644 --- a/php_apfd.c +++ b/php_apfd.c @@ -96,6 +96,10 @@ static inline void apfd_update(struct apfd *apfd TSRMLS_DC) PHP_RINIT_FUNCTION(apfd) { +#ifndef TSRMLS_C +# define TSRMLS_C +# define TSRMLS_CC +#endif /* populate form data on non-POST requests */ if (SG(request_info).request_method && strcasecmp(SG(request_info).request_method, "POST") && SG(request_info).content_type && *SG(request_info).content_type) { char *ct_str, *ct_dup = estrdup(SG(request_info).content_type);