summaryrefslogtreecommitdiff
path: root/ext/ming/ming.c
diff options
context:
space:
mode:
authorFrank M. Kromann <fmk@php.net>2004-07-19 22:23:13 +0000
committerFrank M. Kromann <fmk@php.net>2004-07-19 22:23:13 +0000
commit15b67145955c8f8a4a41f97b897bcd3c8019273e (patch)
treee7f79a30e7af6feec368308aa7e97b52ba9dccb7 /ext/ming/ming.c
parent1f57188741039376b08619074d11860ed69a35ba (diff)
downloadphp-git-15b67145955c8f8a4a41f97b897bcd3c8019273e.tar.gz
Fix compilation with older versions of libMing. Thanks Markus
Diffstat (limited to 'ext/ming/ming.c')
-rw-r--r--ext/ming/ming.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/ming/ming.c b/ext/ming/ming.c
index 45bad1225b..290d998fff 100644
--- a/ext/ming/ming.c
+++ b/ext/ming/ming.c
@@ -2148,8 +2148,10 @@ PHP_METHOD(swfmovie, save)
retval = SWFMovie_output(getMovie(getThis() TSRMLS_CC), &phpStreamOutputMethod, (void *)stream);
php_stream_close(stream);
+#ifdef HAVE_MING_ZLIB
if(oldval >= -1 && oldval <=9)
Ming_setSWFCompression(oldval);
+#endif
RETURN_LONG(retval);
}