Ticket #260: dirent.patch
File dirent.patch, 591 bytes (added by , 11 years ago) |
---|
-
PDF/LHAPDF/LHAPDF_Fortran_Interface.C
old new 11 11 #include <dirent.h> 12 12 #include <cstring> 13 13 14 #ifdef ARCH_LINUX 15 #define DIRENT_TYPE const dirent 16 #else 14 #ifdef DARWIN 15 #if __MAC_OS_X_VERSION_MIN_REQUIRED < __MAC_10_8 17 16 #define DIRENT_TYPE dirent 18 #endif 17 #else 18 #define DIRENT_TYPE const dirent 19 #endif // Lion or earlier 20 #else //DARWIN 21 #define DIRENT_TYPE const dirent 22 #endif //DARWIN 19 23 20 24 #ifndef _D_EXACT_NAMLEN 21 25 #define _D_EXACT_NAMLEN(ENTRY) ENTRY->d_namlen