From: Marcus Boerger Date: Thu, 9 Sep 2004 09:08:33 +0000 (+0000) Subject: Proper #ifdef'ing X-Git-Tag: PRE_NEW_VM_GEN_PATCH~351 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e56b3b6a6fbd87a68630fa5703c8eb1394bc0ed;p=php Proper #ifdef'ing --- diff --git a/ext/ming/ming.c b/ext/ming/ming.c index ca3a7d4272..9bad646777 100644 --- a/ext/ming/ming.c +++ b/ext/ming/ming.c @@ -238,14 +238,16 @@ static SWFCharacter getCharacter(zval *id TSRMLS_DC) return (SWFCharacter)getBitmap(id TSRMLS_CC); else if(Z_OBJCE_P(id) == sound_class_entry_ptr) return (SWFCharacter)getSound(id TSRMLS_CC); - else if(Z_OBJCE_P(id) == videostream_class_entry_ptr) - return (SWFCharacter)getVideoStream(id TSRMLS_CC); - else if(Z_OBJCE_P(id) == prebuiltclip_class_entry_ptr) - return (SWFCharacter)getPrebuiltClip(id TSRMLS_CC); +#ifdef HAVE_NEW_MING /* else if(Z_OBJCE_P(id) == soundinstance_class_entry_ptr) return (SWFCharacter)getSoundInstance(id TSRMLS_CC); */ + else if(Z_OBJCE_P(id) == videostream_class_entry_ptr) + return (SWFCharacter)getVideoStream(id TSRMLS_CC); + else if(Z_OBJCE_P(id) == prebuiltclip_class_entry_ptr) + return (SWFCharacter)getPrebuiltClip(id TSRMLS_CC); +#endif else php_error_docref(NULL TSRMLS_CC, E_ERROR, "Called object is not an SWFCharacter"); return NULL;