Author: matt Date: 2012-08-03 07:17:49 -0700 (Fri, 03 Aug 2012) New Revision: 9655 Log: This should fix the scandir issue on OS X.
Modified: branches/branch-3.0/src/fltk3/filename_list.cxx Modified: branches/branch-3.0/src/fltk3/filename_list.cxx =================================================================== --- branches/branch-3.0/src/fltk3/filename_list.cxx 2012-08-03 12:22:43 UTC (rev 9654) +++ branches/branch-3.0/src/fltk3/filename_list.cxx 2012-08-03 14:17:49 UTC (rev 9655) @@ -116,10 +116,10 @@ #elif defined(__sgi) int n = scandir(dirloc, list, 0, sort); #elif defined(__APPLE__) -# if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_8 +# if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_8 + int n = scandir(dirloc, list, 0, (int(*)(const void*,const void*))sort); +# else 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 _______________________________________________ fltk-commit mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-commit
