Lines 81-87
Link Here
|
81 |
GifParser::~GifParser() |
81 |
GifParser::~GifParser() |
82 |
{ |
82 |
{ |
83 |
if (m_gif) { |
83 |
if (m_gif) { |
|
|
84 |
#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5 |
85 |
DGifCloseFile(m_gif, NULL); |
86 |
#else |
84 |
DGifCloseFile(m_gif); |
87 |
DGifCloseFile(m_gif); |
|
|
88 |
#endif |
85 |
} |
89 |
} |
86 |
} |
90 |
} |
87 |
|
91 |
|
Lines 99-105
Link Here
|
99 |
void GifParser::openImage() |
103 |
void GifParser::openImage() |
100 |
{ |
104 |
{ |
101 |
m_nextByteIndex = 0; |
105 |
m_nextByteIndex = 0; |
|
|
106 |
#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5 |
107 |
m_gif = DGifOpen(this, readFromBuffer, NULL); |
108 |
#else |
102 |
m_gif = DGifOpen(this, readFromBuffer); |
109 |
m_gif = DGifOpen(this, readFromBuffer); |
|
|
110 |
#endif |
103 |
if (!m_gif) { |
111 |
if (!m_gif) { |
104 |
throw runtime_error("open gif failed"); |
112 |
throw runtime_error("open gif failed"); |
105 |
} |
113 |
} |