From d1ac7e3ab1bf3cf639ddbd63ed3824e8bb9fc32f Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Mon, 7 Sep 2020 11:05:07 +0200 Subject: 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. --- ext/ftp/php_ftp.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'ext/ftp/php_ftp.h') diff --git a/ext/ftp/php_ftp.h b/ext/ftp/php_ftp.h index 60eba04adf..ac0bef5fd7 100644 --- a/ext/ftp/php_ftp.h +++ b/ext/ftp/php_ftp.h @@ -18,10 +18,8 @@ #ifndef _INCLUDED_FTP_H #define _INCLUDED_FTP_H -#ifdef HAVE_FTP - extern zend_module_entry php_ftp_module_entry; -#define php_ftp_module_ptr &php_ftp_module_entry +#define phpext_ftp_ptr &php_ftp_module_entry #include "php_version.h" #define PHP_FTP_VERSION PHP_VERSION @@ -34,10 +32,4 @@ extern zend_module_entry php_ftp_module_entry; PHP_MINIT_FUNCTION(ftp); PHP_MINFO_FUNCTION(ftp); -#define phpext_ftp_ptr php_ftp_module_ptr - -#else -#define php_ftp_module_ptr NULL -#endif /* HAVE_FTP */ - #endif -- cgit v1.2.1