GIF ifdefs for ppc from Andrew
authorGood Guy <[email protected]>
Wed, 6 Apr 2022 22:09:37 +0000 (16:09 -0600)
committerGood Guy <[email protected]>
Wed, 6 Apr 2022 22:09:37 +0000 (16:09 -0600)
cinelerra-5.1/cinelerra/file.C
cinelerra-5.1/cinelerra/filegif.C
cinelerra-5.1/cinelerra/formatpopup.C

index 07cddec4961fc9faf60fc0b36d3cab6622073e2b..0406e174f4f24bb58f81c593b2856e412e22a48d 100644 (file)
@@ -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:
index b80f741206c4b47a97e9b8020c0e049eccabce23..88c4eb9038aae8accd24c56b2e91b839d8e21ca1 100644 (file)
@@ -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
index dc1e95154f1d621ab523b6fa8581a647ee1d1327..90f6599ad2310b084fdcdc78fdc1c208e8fca302 100644 (file)
@@ -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);