diff options
| author | Nuno Lopes <nlopess@php.net> | 2007-01-06 19:26:32 +0000 |
|---|---|---|
| committer | Nuno Lopes <nlopess@php.net> | 2007-01-06 19:26:32 +0000 |
| commit | 726dfb08373e73b2e2cf5caf9a714532a2c35b66 (patch) | |
| tree | fba0a3892abcfbc329b3735acfe20f0df9371fbc /ext/ming/ming.c | |
| parent | b23813044d7fe0af9104d9de8a9f8386ddfe2242 (diff) | |
| download | php-git-726dfb08373e73b2e2cf5caf9a714532a2c35b66.tar.gz | |
MFB: fix build with libming 0.3
Diffstat (limited to 'ext/ming/ming.c')
| -rw-r--r-- | ext/ming/ming.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/ext/ming/ming.c b/ext/ming/ming.c index d2bcf18428..07e1c1f9ef 100644 --- a/ext/ming/ming.c +++ b/ext/ming/ming.c @@ -52,6 +52,8 @@ static zend_function_entry ming_functions[] = { PHP_FALIAS(ming_keypress, ming_keypress, NULL) #ifdef HAVE_NEW_MING PHP_FALIAS(ming_useconstants, ming_useConstants, NULL) +#endif +#ifdef HAVE_MING_SETSWFCOMPRESSION PHP_FALIAS(ming_setswfcompression, ming_setSWFCompression, NULL) #endif { NULL, NULL, NULL } @@ -142,7 +144,9 @@ PHP_FUNCTION(ming_useConstants) Ming_useConstants(Z_LVAL_PP(num)); } /* }}} */ +#endif +#ifdef HAVE_MING_SETSWFCOMPRESSION /* {{{ set output compression */ PHP_FUNCTION(ming_setSWFCompression) { @@ -154,7 +158,6 @@ PHP_FUNCTION(ming_setSWFCompression) Ming_setSWFCompression(Z_LVAL_PP(num)); } /* }}} */ - #endif static int le_swfmoviep; @@ -2190,6 +2193,7 @@ PHP_METHOD(swfmovie, labelFrame) } /* }}} */ +#ifdef HAVE_SWFMOVIE_NAMEDANCHOR /* {{{ proto void swfmovie::namedanchor(string name) */ PHP_METHOD(swfmovie, namedAnchor) @@ -2205,6 +2209,7 @@ PHP_METHOD(swfmovie, namedAnchor) SWFMovie_namedAnchor(getMovie(getThis() TSRMLS_CC), Z_STRVAL_PP(name)); } /* }}} */ +#endif /* {{{ proto void swfmovie::protect([ string pasword]) */ @@ -2784,9 +2789,11 @@ static zend_function_entry swfmovie_functions[] = { PHP_ME(swfmovie, importChar, NULL, 0) PHP_ME(swfmovie, importFont, NULL, 0) PHP_ME(swfmovie, addFont, NULL, 0) - PHP_ME(swfmovie, namedAnchor, NULL, 0) PHP_ME(swfmovie, protect, NULL, 0) #endif +#ifdef HAVE_SWFMOVIE_NAMEDANCHOR + PHP_ME(swfmovie, namedAnchor, NULL, 0) +#endif { NULL, NULL, NULL } }; |
