summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2012-08-06 08:16:37 +0000
committerMatthias Melcher <fltk@matthiasm.com>2012-08-06 08:16:37 +0000
commit4c11d57da72469327ded0dc2c5a467ba492e04a4 (patch)
tree232e7fa2f71395ab77386b2e3151590b140833fd /src
parentbf6024175d1deff3406fe56b22600b4a593efd74 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/filename_list.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/filename_list.cxx b/src/filename_list.cxx
index c86edc4e6..690903d1b 100644
--- a/src/filename_list.cxx
+++ b/src/filename_list.cxx
@@ -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