diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-09-07 11:05:07 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-09-07 11:05:07 +0200 |
commit | d1ac7e3ab1bf3cf639ddbd63ed3824e8bb9fc32f (patch) | |
tree | 9d8bd3f15db87e3fe69a31573bae1386e27d67c5 /ext/ftp/php_ftp.h | |
parent | 8e05c4449673c8fd7bf3e1d3f5ddf4689ddd0bdb (diff) | |
download | php-git-d1ac7e3ab1bf3cf639ddbd63ed3824e8bb9fc32f.tar.gz |
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.
Diffstat (limited to 'ext/ftp/php_ftp.h')
-rw-r--r-- | ext/ftp/php_ftp.h | 10 |
1 files changed, 1 insertions, 9 deletions
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 |