Fix compiling issue
authorKlaus Ethgen <Klaus@Ethgen.de>
Fri, 16 Jul 2010 12:30:53 +0000 (13:30 +0100)
committerKlaus Ethgen <Klaus@Ethgen.de>
Fri, 22 Apr 2011 10:27:59 +0000 (11:27 +0100)
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

index d1becc5..06ec9c1 100644 (file)
@@ -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);