From: Klaus Ethgen Date: Fri, 16 Jul 2010 12:30:53 +0000 (+0100) Subject: Fix compiling issue X-Git-Tag: v1.2~11^2~7^2 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=e504820e7afff00efe7937b7b9a5fd830ae1d79e Fix compiling issue 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 --- diff --git a/src/img-view.c b/src/img-view.c index d1becc52..06ec9c18 100644 --- a/src/img-view.c +++ b/src/img-view.c @@ -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);