Fixed compilation error on Mountain Lion

git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@919 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
matlabbe
2013-08-19 20:22:42 +00:00
parent ffbf4c8ba3
commit 21bd27586f

View File

@@ -49,11 +49,8 @@ bool sortCallback(const std::string & a, const std::string & b)
return uStrNumCmp(a,b) < 0;
}
#elif __APPLE__
int sortCallback(const void * aa, const void * bb)
int sortCallback(const struct dirent ** a, const struct dirent ** b)
{
const struct dirent ** a = (const struct dirent **)aa;
const struct dirent ** b = (const struct dirent **)bb;
return uStrNumCmp((*a)->d_name, (*b)->d_name);
}
#else