diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-10-06 21:04:25 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-10-06 21:04:25 -0700 |
commit | 475e058d40690803a4114f5aa9055023af6e6b4b (patch) | |
tree | 352b9ccb4fd147dd098135fa70145358dc0b6387 /uemis-downloader.c | |
parent | 34db6dc2bea6173c070c9820a2e57a511b9ca0b1 (diff) | |
download | subsurface-475e058d40690803a4114f5aa9055023af6e6b4b.tar.gz |
Make Windows cross compile again
But this is broken as the utf8/utf16 conversions in windows.c are gone
without glib.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'uemis-downloader.c')
-rw-r--r-- | uemis-downloader.c | 6 |
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; |