Mercurial > hg > forks > geeqie
changeset 1866:54fa841e2057
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
author | Klaus Ethgen <Klaus@Ethgen.de> |
---|---|
date | Fri, 16 Jul 2010 13:30:53 +0100 |
parents | d525caac8cad |
children | de64f1a472ad |
files | src/img-view.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/img-view.c Sat May 08 23:52:09 2010 +0100 +++ b/src/img-view.c Fri Jul 16 13:30:53 2010 +0100 @@ -886,7 +886,8 @@ } /* 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);