mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
34db6dc2be
commit
475e058d40
5 changed files with 39 additions and 18 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue