Ignore:
Timestamp:
Jun 13, 2011 12:32:06 PM (8 years ago)
Author:
stefan
Message:

use CoinFileIO::have*Support to decide whether compressed files can be read

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/unitTest.cpp

    r1640 r1668  
    1616
    1717#include "CoinHelperFunctions.hpp"
     18#include "CoinFileIO.hpp"
    1819
    1920#ifdef COIN_HAS_CBC
     
    5859        fclose(fp);
    5960    }
    60 #ifdef COIN_USE_ZLIB
    61     test1 += ".gz";
    62     fp = fopen(test1.c_str(), "r");
    63     if (fp) {
     61    if (!doTest && CoinFileInput::haveGzipSupport())
     62    {
     63      test1 += ".gz";
     64      fp = fopen(test1.c_str(), "r");
     65      if (fp) {
    6466        doTest = true;
    6567        fclose(fp);
    66     }
    67 #endif
     68      }
     69    }
    6870    if (!doTest)
    6971        return;
Note: See TracChangeset for help on using the changeset viewer.