Changeset 11560 for trunk/Mars/mbase


Ignore:
Timestamp:
07/24/11 12:14:26 (13 years ago)
Author:
tbretz
Message:
Fixed check for SIMPLE; added HAVE_ZLIB support.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mbase/fits.h

    r11557 r11560  
    2727#endif
    2828
     29#ifdef HAVE_ZLIB
    2930#include "izstream.h"
     31#else
     32#include <fstream>
     33#define izstream ifstream
     34#warning Support for zipped FITS files disabled.
     35#endif
    3036
    3137namespace std
     
    385391    fits(const string &fname) : izstream(fname.c_str())
    386392    {
    387         char simple[6];
    388         read(simple, 6);
     393        char simple[10];
     394        read(simple, 10);
    389395        if (!good())
    390396            return;
    391397
    392         if (memcmp(simple, "SIMPLE", 6))
     398        if (memcmp(simple, "SIMPLE  = ", 10))
    393399        {
    394400            clear(rdstate()|ios::badbit);
Note: See TracChangeset for help on using the changeset viewer.