mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user