os x fixes
This commit is contained in:
parent
8d90c91704
commit
6dcd5057e0
|
@ -32,6 +32,8 @@ int FileFindFirst(char *search_str, FILEFINDSTRUCT *ffstruct)
|
|||
r = glob(search_str, 0, NULL, &glob_a);
|
||||
if (r) return 1;
|
||||
|
||||
if (! glob_a.gl_pathc) return 1;
|
||||
|
||||
glob_whichfile = 0;
|
||||
|
||||
t = strrchr(glob_a.gl_pathv[glob_whichfile], '/');
|
||||
|
|
|
@ -46,6 +46,9 @@ typedef uint16_t u_int16_t;
|
|||
# include <sys/types.h>
|
||||
# define _MAX_PATH 1024
|
||||
# define _MAX_DIR 256
|
||||
#ifdef __MACOSX__
|
||||
typedef unsigned long ulong;
|
||||
#endif
|
||||
|
||||
#elif defined __DJGPP__
|
||||
# include <sys/types.h>
|
||||
|
|
Loading…
Reference in a new issue