Skip to content

Commit

Permalink
add apple silicon support in g3dlib
Browse files Browse the repository at this point in the history
  • Loading branch information
insunaa authored and cyberium committed Jul 9, 2022
1 parent d029bf6 commit 3c5ceab
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dep/g3dlite/FileSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@
# define _stat stat
#endif

#if defined __aarch64__ && defined __APPLE__
# if defined stat64
# undef stat64
# endif
# define stat64 stat
#endif

namespace G3D {

static FileSystem* common = NULL;
Expand Down

0 comments on commit 3c5ceab

Please sign in to comment.