File tree Expand file tree Collapse file tree 1 file changed +8
-18
lines changed Expand file tree Collapse file tree 1 file changed +8
-18
lines changed Original file line number Diff line number Diff line change 1
1
#include <sys/stat.h>
2
2
#include <dirent.h>
3
3
4
- #ifdef __APPLE__
4
+ #if defined( __APPLE__ ) && !defined( __aarch64__ )
5
5
DIR * opendir$INODE64 ( const char * dirName );
6
6
struct dirent * readdir$INODE64 ( DIR * dir );
7
+ #define opendir opendir$INODE64
8
+ #define readdir readdir$INODE64
7
9
#endif
8
10
9
11
int c_is_dir (const char * path )
@@ -18,24 +20,12 @@ const char *get_d_name(struct dirent *d)
18
20
return (const char * ) d -> d_name ;
19
21
}
20
22
21
-
22
-
23
- DIR * c_opendir (const char * dirname ){
24
-
25
- #ifdef __APPLE__
26
- return opendir$INODE64 (dirname );
27
- #else
23
+ DIR * c_opendir (const char * dirname )
24
+ {
28
25
return opendir (dirname );
29
- #endif
30
-
31
26
}
32
27
33
- struct dirent * c_readdir (DIR * dirp ){
34
-
35
- #ifdef __APPLE__
36
- return readdir$INODE64 (dirp );
37
- #else
28
+ struct dirent * c_readdir (DIR * dirp )
29
+ {
38
30
return readdir (dirp );
39
- #endif
40
-
41
- }
31
+ }
You can’t perform that action at this time.
0 commit comments