]> granicus.if.org Git - libass/commitdiff
Fix compiler compatibility
authorGrigori Goronzy <greg@chown.ath.cx>
Tue, 25 Feb 2014 01:33:04 +0000 (02:33 +0100)
committerGrigori Goronzy <greg@chown.ath.cx>
Fri, 10 Jul 2015 08:42:40 +0000 (10:42 +0200)
test/test.c

index 33aa94c97ffef5558d3d91a83fba31170a93f5ad..72a6991190e799288a3a8dae1453f6ff9da5d8ce 100644 (file)
@@ -175,11 +175,12 @@ char *font_provider_labels[] = {
 
 static void print_font_providers(ASS_Library *ass_library)
 {
+    int i;
     ASS_DefaultFontProvider *providers;
     size_t providers_size = 0;
     ass_get_available_font_providers(ass_library, &providers, &providers_size);
     printf("test.c: Available font providers (%zu): ", providers_size);
-    for (int i = 0; i < providers_size; i++) {
+    for (i = 0; i < providers_size; i++) {
         const char *separator = i > 0 ? ", ": "";
         printf("%s'%s'", separator,  font_provider_labels[providers[i]]);
     }