diff options
| author | Piotr Pawłow <pp@siedziba.pl> | 2016-09-14 17:20:39 +0200 |
|---|---|---|
| committer | Piotr Pawłow <pp@siedziba.pl> | 2016-09-14 17:20:39 +0200 |
| commit | 0376c1a449dc981448cef5706fcebb3e0c5b0e4b (patch) | |
| tree | 8957300686e074c06f6f5d142093ef0e4c40d2be /php_imlib.h | |
| parent | 3b3b3b3a4bdbf6162378e860aff772f1f3604b5c (diff) | |
Revert "Remove useless include and defines."
This reverts commit 3b3b3b3a4bdbf6162378e860aff772f1f3604b5c.
Diffstat (limited to 'php_imlib.h')
| -rw-r--r-- | php_imlib.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/php_imlib.h b/php_imlib.h index 30c7e58..7df29c5 100644 --- a/php_imlib.h +++ b/php_imlib.h @@ -158,6 +158,7 @@ typedef PHP_Imlib_Color_Modifier_struct *PHP_Imlib_Color_Modifier; #if PHP_VERSION_ID >= 70000 typedef zval imlib_zval; typedef zend_resource imlib_resource; +# define IMLIB_TO_ZVAL(v) v # define Z_LVAL_PP(v) Z_LVAL_P(v) # define Z_DVAL_PP(v) Z_DVAL_P(v) # define STR_VAL(k) (k)->val @@ -172,6 +173,7 @@ typedef PHP_Imlib_Color_Modifier_struct *PHP_Imlib_Color_Modifier; typedef zval* imlib_zval; typedef imlib_zval imlib_resource; typedef char zend_string; +# define IMLIB_TO_ZVAL(v) *v # define STR_VAL(k) (k) # define IMLIB_DELETE_RESOURCE(v) zend_list_delete(Z_LVAL_PP(v)) # define IMLIB_RETURN_STRING(v) RETURN_STRING(v, 1) |
