diff options
Diffstat (limited to 'src/php/ext/grpc/channel_credentials.h')
-rw-r--r-- | src/php/ext/grpc/channel_credentials.h | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/src/php/ext/grpc/channel_credentials.h b/src/php/ext/grpc/channel_credentials.h index 357d732642..7c6cf30367 100644 --- a/src/php/ext/grpc/channel_credentials.h +++ b/src/php/ext/grpc/channel_credentials.h @@ -19,17 +19,9 @@ #ifndef NET_GRPC_PHP_GRPC_CHANNEL_CREDENTIALS_H_ #define NET_GRPC_PHP_GRPC_CHANNEL_CREDENTIALS_H_ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include "php.h" -#include "php_ini.h" -#include "ext/standard/info.h" #include "php_grpc.h" -#include "grpc/grpc.h" -#include "grpc/grpc_security.h" +#include <grpc/grpc_security.h> /* Class entry for the ChannelCredentials PHP class */ extern zend_class_entry *grpc_ce_channel_credentials; @@ -42,24 +34,12 @@ PHP_GRPC_WRAP_OBJECT_START(wrapped_grpc_channel_credentials) zend_bool has_call_creds; PHP_GRPC_WRAP_OBJECT_END(wrapped_grpc_channel_credentials) -#if PHP_MAJOR_VERSION < 7 - -#define Z_WRAPPED_GRPC_CHANNEL_CREDS_P(zv) \ - (wrapped_grpc_channel_credentials *)zend_object_store_get_object(zv TSRMLS_CC) - -#else - static inline wrapped_grpc_channel_credentials *wrapped_grpc_channel_credentials_from_obj(zend_object *obj) { return (wrapped_grpc_channel_credentials *)( (char*)(obj) - XtOffsetOf(wrapped_grpc_channel_credentials, std)); } -#define Z_WRAPPED_GRPC_CHANNEL_CREDS_P(zv) \ - wrapped_grpc_channel_credentials_from_obj(Z_OBJ_P((zv))) - -#endif /* PHP_MAJOR_VERSION */ - /* Initializes the ChannelCredentials PHP class */ void grpc_init_channel_credentials(TSRMLS_D); |