Skip to content

Commit

Permalink
Merge pull request #695 from vigsterkr/master
Browse files Browse the repository at this point in the history
Mountain Lion changed API of scandir
  • Loading branch information
Soeren Sonnenburg committed Aug 8, 2012
2 parents 05719ba + 2cebf0a commit f342b7d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/shogun/io/SGIO.h
Expand Up @@ -58,7 +58,12 @@ enum EMessageType
#define FBUFSIZE 4096

#ifdef DARWIN
#include <Availability.h>
#if __MAC_OS_X_VERSION_MIN_REQUIRED < __MAC_10_8
#define CONST_DIRENT_T struct dirent
#else
#define CONST_DIRENT_T const struct dirent
#endif // Mountain Lion or earlier
#else //DARWIN
#define CONST_DIRENT_T const struct dirent
#endif //DARWIN
Expand Down

0 comments on commit f342b7d

Please sign in to comment.