From: Good Guy Date: Wed, 6 Apr 2022 22:09:37 +0000 (-0600) Subject: GIF ifdefs for ppc from Andrew X-Git-Tag: 2022-04~8 X-Git-Url: https://git.cinelerra-gg.org/git/?a=commitdiff_plain;h=086c7ab39d47770c4e37615e02e361fe012e1655;p=goodguy%2Fcinelerra.git GIF ifdefs for ppc from Andrew --- diff --git a/cinelerra-5.1/cinelerra/file.C b/cinelerra-5.1/cinelerra/file.C index 07cddec4..0406e174 100644 --- a/cinelerra-5.1/cinelerra/file.C +++ b/cinelerra-5.1/cinelerra/file.C @@ -387,7 +387,9 @@ const char *File::default_probes[] = { "PNG", "PPM", "JPEG", +#ifdef HAVE_GIFLIB "GIF", +#endif "DPX", #ifdef HAVE_OPENEXR "EXR", @@ -465,6 +467,7 @@ int File::probe() file = new FileJPEG(this->asset, this); return FILE_OK; } +#ifdef HAVE_GIFLIB if( !strcmp(pref->name,"GIF") ) { // GIF file if( FileGIFList::check_sig(this->asset) ) file = new FileGIFList(this->asset, this); @@ -473,6 +476,7 @@ int File::probe() else continue; return FILE_OK; } +#endif #ifdef HAVE_LIBDPX if( !strcmp(pref->name,"DPX") ) { // DPX file if( !FileDPX::check_sig(this->asset, data) ) continue; @@ -599,13 +603,14 @@ int File::open_file(Preferences *preferences, case FILE_JPEG_LIST: file = new FileJPEG(this->asset, this); break; - +#ifdef HAVE_GIFLIB case FILE_GIF: file = new FileGIF(this->asset, this); break; case FILE_GIF_LIST: file = new FileGIFList(this->asset, this); break; +#endif #ifdef HAVE_LIBDPX case FILE_DPX: case FILE_DPX_LIST: diff --git a/cinelerra-5.1/cinelerra/filegif.C b/cinelerra-5.1/cinelerra/filegif.C index b80f7412..88c4eb90 100644 --- a/cinelerra-5.1/cinelerra/filegif.C +++ b/cinelerra-5.1/cinelerra/filegif.C @@ -18,7 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ - +#ifdef HAVE_GIFLIB #include "asset.h" #include "bcsignals.h" #include "file.h" @@ -572,3 +572,4 @@ GIFUnit::~GIFUnit() delete temp_frame; } +#endif diff --git a/cinelerra-5.1/cinelerra/formatpopup.C b/cinelerra-5.1/cinelerra/formatpopup.C index dc1e9515..90f6599a 100644 --- a/cinelerra-5.1/cinelerra/formatpopup.C +++ b/cinelerra-5.1/cinelerra/formatpopup.C @@ -61,8 +61,10 @@ void FormatPopup::create_objects() if(!use_brender) { +#ifdef HAVE_GIFLIB post_item(FILE_GIF); post_item(FILE_GIF_LIST); +#endif #ifdef HAVE_OPENEXR post_item(FILE_EXR); post_item(FILE_EXR_LIST);