Skip to content

Commit

Permalink
Fix compiling issue
Browse files Browse the repository at this point in the history
img-view.c: In function 'real_view_window_new':
img-view.c:889: error: 'for' loop initial declarations are only allowed in C99 mode
img-view.c:889: note: use option -std=c99 or -std=gnu99 to compile your code
  • Loading branch information
mowgli committed Dec 23, 2010
1 parent 6e695dd commit e504820
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/img-view.c
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,8 @@ static ViewWindow *real_view_window_new(FileData *fd, GList *list, CollectionDat
}

/* Wait until image is loaded otherwise size is not defined */
for (int count = 10; count && !w && !h; count++)
int count;
for (count = 10; count && !w && !h; count++)
{
image_get_image_size(vw->imd, &w, &h);
usleep(100000);
Expand Down

0 comments on commit e504820

Please sign in to comment.