X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-apfd;a=blobdiff_plain;f=php_apfd.c;h=48e767f62eecac61caa7c86c9895ecffaf05e1ef;hp=da178eb7b3ab65bd0a9f77e1e9136666bd97f730;hb=527640f6839fd13d5c55efad29a83dcae9dfc45c;hpb=39d9936c61018c60d831d52896a7ee738952180e 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);