mirror of
https://github.com/yawut/SDL.git
synced 2026-08-20 07:44:03 -05:00
Compatibility fix. Apparently all system don't have d_namlen member
in their DIR struct.
This commit is contained in:
@@ -129,7 +129,7 @@ ScanForTestSuites(char *directoryName, char *extension)
|
||||
}
|
||||
|
||||
while(entry = readdir(directory)) {
|
||||
if(entry->d_namlen > 2) { // discards . and ..
|
||||
if(strlen(entry->d_name) > 2) { // discards . and ..
|
||||
const char *delimiters = ".";
|
||||
char *name = strtok(entry->d_name, delimiters);
|
||||
char *ext = strtok(NULL, delimiters);
|
||||
|
||||
Reference in New Issue
Block a user