OS X: fixed compilation on Xcode 4.4. Removed SDKROOT dependency on 10.6
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9660 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
bf6024175d
commit
4c11d57da7
File diff suppressed because it is too large
Load Diff
@ -108,6 +108,12 @@ int fl_filename_list(const char *d, dirent ***list,
|
||||
int n = scandir(dirloc, list, 0, (int(*)(void*, void*))sort);
|
||||
#elif defined(__sgi)
|
||||
int n = scandir(dirloc, list, 0, sort);
|
||||
#elif defined(__APPLE__)
|
||||
# if MAC_OS_X_VERSION_MAX_ALLOWED >= 1080
|
||||
int n = scandir(dirloc, list, 0, (int(*)(const struct dirent**,const struct dirent**))sort);
|
||||
# else
|
||||
int n = scandir(dirloc, list, 0, (int(*)(const void*,const void*))sort);
|
||||
# endif
|
||||
#else
|
||||
// The vast majority of UNIX systems want the sort function to have this
|
||||
// prototype, most likely so that it can be passed to qsort without any
|
||||
|
Loading…
Reference in New Issue
Block a user