Skip to content
Snippets Groups Projects
Commit bf757d69 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Not every platform has GLOB_ONLYDIR support

... kind of as I suspected
parent 525f1150
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
Pipeline #6387 passed
...@@ -636,6 +636,9 @@ static bool getfilecase(char *path, bool dir) ...@@ -636,6 +636,9 @@ static bool getfilecase(char *path, bool dir)
} }
#endif #endif
#if !defined GLOB_ONLYDIR
#define GLOB_ONLYDIR 0
#endif
if(glob(globme, dir ? GLOB_ONLYDIR : GLOB_MARK, NULL, &glb) != 0) if(glob(globme, dir ? GLOB_ONLYDIR : GLOB_MARK, NULL, &glb) != 0)
return(false); return(false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment