static int svg_file_count;
static float maxScroll;
+/* not defined in c11, ok to define here only for sample */
+#ifndef DT_DIR
+ # define DT_DIR 4
+#endif
+
int _count_svg_files () {
struct dirent *de;
rewinddir (pCurrentDir);
printf ("Unable to stat file: %s\n", filename);
exit(EXIT_FAILURE);
}
- if (sb.st_mtim.tv_sec == file_stat.st_mtim.tv_sec)
+ if (sb.st_mtime == file_stat.st_mtime)
return;
file_stat = sb;
newSvgSurf = vkvg_surface_create_from_svg(dev, width, height, filename);
printf ("Unable to stat file: %s\n", tmp);
exit(EXIT_FAILURE);
}
- if (sb.st_mtim.tv_sec == file_stat.st_mtim.tv_sec)
+ if (sb.st_mtime == file_stat.st_mtime)
return;
file_stat = sb;
newSvgSurf = vkvg_surface_create_from_svg(dev, width, height, tmp);