Remove some unnecessary HAVE_EXTNAME guards

A recurring pattern in old extension: Putting the whole source
code behind HAVE_EXTNAME. This is pointless, as the code is only
compiled if the extension is enabled.

This removes a couple of them, but not all.
This commit is contained in:
Nikita Popov 2020-09-07 11:05:07 +02:00
parent 8e05c44496
commit d1ac7e3ab1
9 changed files with 2 additions and 48 deletions

View file

@ -23,8 +23,6 @@
#include "php.h"
#include "Zend/zend_interfaces.h"
#ifdef HAVE_CURL
#include "php_curl.h"
#include <curl/curl.h>
@ -599,5 +597,3 @@ void curl_multi_register_class(const zend_function_entry *method_entries) {
curl_multi_handlers.clone_obj = NULL;
curl_multi_handlers.cast_object = curl_cast_object;
}
#endif