From e504820e7afff00efe7937b7b9a5fd830ae1d79e Mon Sep 17 00:00:00 2001 From: Klaus Ethgen Date: Fri, 16 Jul 2010 13:30:53 +0100 Subject: [PATCH] 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 --- src/img-view.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.20.1