Skip to content

Commit

Permalink
removed old gnu style initializer
Browse files Browse the repository at this point in the history
seems fine with g++ though
  • Loading branch information
tj committed Jul 12, 2011
1 parent 16096ad commit 16cd613
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Image.cc
Expand Up @@ -420,11 +420,7 @@ Image::loadGIFFromBuffer(uint8_t *buf, unsigned len) {
int imageIdx = 0;
GifFileType* gif;

gif_data_t gifd = {
buf: buf
, len: len
, pos: 0
};
gif_data_t gifd = { buf, len, 0 };

if((gif = DGifOpen((void*) &gifd, read_gif_from_memory)) == NULL)
return CAIRO_STATUS_READ_ERROR;
Expand Down

0 comments on commit 16cd613

Please sign in to comment.