summaryrefslogtreecommitdiffstats
path: root/uemis-downloader.c
diff options
context:
space:
mode:
Diffstat (limited to 'uemis-downloader.c')
-rw-r--r--uemis-downloader.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/uemis-downloader.c b/uemis-downloader.c
index 9f1dfb354..067e113b0 100644
--- a/uemis-downloader.c
+++ b/uemis-downloader.c
@@ -148,9 +148,11 @@ static int number_of_file(char *path)
dirp = opendir(path);
while ((entry = readdir(dirp)) != NULL) {
- if (entry->d_type == DT_REG) { /* If the entry is a regular file */
+#ifndef WIN32
+ if (entry->d_type == DT_REG) /* If the entry is a regular file */
+#endif
count++;
- }
+
}
closedir(dirp);
return count;