Skip to content
This repository was archived by the owner on Jul 15, 2021. It is now read-only.

Commit d4bc32c

Browse files
author
年迈的老秋风Windy
committed
Fix Linux Listing Bug
1 parent b55a3c7 commit d4bc32c

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/XSYDFileInfo.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ std::vector<std::string> EasyCrossPlatform::File::FileInfo::FileInfoCls::getDire
109109
NSDirPath += File::FolderSeparator;
110110
}
111111

112-
#ifdef WIN32
112+
#ifdef EASYCROSSPLATFORM_PLATFORM_WINDOWS
113113
NSDirPath += "*";
114114
_finddata_t file;
115115
long lf;
@@ -127,9 +127,7 @@ std::vector<std::string> EasyCrossPlatform::File::FileInfo::FileInfoCls::getDire
127127
}
128128
}
129129
_findclose(lf);
130-
#endif
131-
132-
#ifdef linux
130+
#else //EASYCROSSPLATFORM_PLATFORM_UNIX
133131
DIR *dir;
134132
struct dirent *ptr;
135133
//char base[1000];

0 commit comments

Comments
 (0)